1,475 Answered Questions for the topic computer programming

Computer Programming

08/25/19

How can I have an access to array elements from array of arrays?

Int a1= {1,2};int a2= {2,3}; int a3 [] [] = {a1,a2}; int r=(int) (Math.random() *a3.length); how can I have access to that a3 [r] stored in another array? Like-for (int p:a3[r]) {SOP(p);} how can I... more
Computer Programming Github Desktop Gitignore Unity

08/20/19

How do I setup GitHub Desktop to ignore Unity build files?

What is the best way to access the GitIgnore file and what patterns should I use to ignore Unity build files?
Computer Programming Browsing Habits

08/04/19

How would you change your everday browsing habits

08/02/19

Learning garbage collection theory?

I want to learn the theory behind garbage collection. How do i go about it? The obvious answer is - a compiler textbook... The question is, is it necessary to learn lexical analysis, parsing and... more
Computer Programming Algorithm Theory Random

08/02/19

Could a truly random number be generated using pings to pseudo-randomly selected IP addresses?

The question posed came about during my comp sci lecture while discussing the impossibility of generating numbers in a deterministic computational device.This was the only suggestion which didn't... more
Computer Programming Theory

08/01/19

Most difficult programming explanation?

Recently I tried to explain some poorly designed code to my project manager. All of the manager classes are singletons ("and that's why I can't easily change this") and the code uses event... more
Computer Programming Algorithm Theory Metrics

08/01/19

Help Understanding Big O

I'm asking more about what this means to my code. I understand the concepts mathematically, I just have a hard time wrapping my head around what they mean conceptually. For example, if one were... more
Computer Programming Math Random Language Agnostic

08/01/19

Understanding "randomness"?

I can't get my head around this, which is more random? rand()OR rand() * rand() ?
Computer Programming Theory Image Processing Computer Vision

08/01/19

Where do I start learning about image processing and object recognition?

I'm interested in writing some basic computerized object recognition application, so I figure I need some theoretical background in image processing algorithms, along with some AI for decision... more
Computer Programming Theory Data Structures Editor

08/01/19

Text editor theory?

As I'm always dissatisfied with existing editors, a project I always wanted to start is my own text editor. However doing text editing is serious business.Besides analyzing the source code of... more
Computer Programming Theory Turing Machines Turing Complete

07/31/19

What is Turing Complete?

What does the expression "Turing Complete" mean? Can you give a simple explanation, without going into too many theoretical details?
Computer Programming Database Theory Internals

07/30/19

Database Internals - Where to Begin?

So lets say that you want to learn some stuff about database internals. What's the best source code to look at? the best books to buy?I was talking about this with a buddy the other day and he... more
Computer Programming Theory Language Agnostic Singleton

07/29/19

Purpose of singletons in programming?

This is admittedly a rather loose question. My current understanding of singletons is that they are a class that you set up in such a way that only one instance is ever created.This sounds a lot... more
Computer Programming Theory Multitasking

07/29/19

What is starvation?

In multitasking systems, some abnormal conditions prevent progress of executing processes or threads. I'll refer to both processes and threads simply as "processes". Two of these conditions are... more
Computer Programming Absolute Value Algorithm Performance

07/29/19

Which is the fastest way to get the absolute value of a number?

How fast is an `if` (and why please). My college programing professors always told me to avoid `if`s for they are extremely slow, but I always forgot to ask how slow and why.
Computer Programming Process Theory Multithreading

07/28/19

Difference between user-level and kernel-supported threads?

I've been looking through a few notes based on this topic, and although I have an understanding of threads in general, I'm not really to sure about the _differences between user-level and... more
Computer Programming Computer Informationtechnology

07/28/19

Need help with this terminology

i need help comparing and explaining: Artificial Intelligence and Expert System EDSAC and EDVAC System Programmer and Application Programmer Information Technology and Information System Transistor... more
Computer Programming Definition Language Agnostic Idempotent

07/27/19

What is an idempotent operation?

Computer Programming Math Datetime Language Agnostic

07/25/19

Determine Whether Two Date Ranges Overlap?

Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap?As an example, suppose we have ranges denoted by DateTime variables `StartDate1`... more
Computer Programming Cubes Algorithm Theory

07/25/19

Anyone know anything about OLAP Internals?

I know a bit about database internals. I've actually implemented a small, simple relational database engine before, using ISAM structures on disk and BTree indexes and all that sort of thing. It... more
Computer Programming Theory Cloning .net

07/24/19

Why is cloning (in .NET) so difficult?

In the past I had the need to clone objects, only to find that they don't implement a <code>Clone()</code> method, forcing me to do it by hand (create a new instance and copy all... more
Computer Programming Computer Science Programming

07/22/19

C++ program use of getchar and putchar function

What is difference between these two programs1 )#include<iostream.h>#include<stdlib.h> int main(){ system("cls"); char ch ; do { cout<<"enter a character :"; ch=... more
Computer Programming Algorithm Theory Directed Graph

07/21/19

How do I check if a directed graph is acyclic?

Computer Programming Algorithm Theory Language Agnostic

07/21/19

What is an NP-complete in computer science?

What is an NP-complete problem? Why is it such an important topic in computer science?

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.