344 Answered Questions for the topic Theory

07/18/19

How to program a fractal?

I do not have any experience with programming fractals. Of course I've seen the famous Mandelbrot images and such.Can you provide me with simple algorithms for fractals? Programming language... more

Are there any O(1/n) algorithms?

Are there any O(1/n) algorithms?Or anything else which is less than O(1)?

What does it mean to compose two Functors?

Exercise 5 of the Haskell Typeclassopedia Section 3.2 asks for a proof or counterexample on the statement: *The composition of two Functors is also a Functor.* I thought at first that this was... more

07/17/19

Why use two step approach to deleting multiple items with REST?

We all know the 'standard' way of deleting a single item via REST is to send a single DELETE request to a URI `example.com/Items/666`. Grand, let's move on to deleting many at once. As we do not... more

Can someone explain the theory behind the changes in Superstition by Stevie Wonder?

I'm learning Stevie Wonder's Superstition on guitar (an awesome song) and I'm really curious about the theory behind the changes in the chorus. The intro and verse are just a riff in E minor... more

Did you apply computational complexity theory in real life?

I'm taking a course in computational complexity and have so far had an impression that it won't be of much help to a developer. I might be wrong but if you have gone down this path before, could... more

07/11/19

What is fuzzy logic?

I'm working with a couple of AI algorithms at school and I find people use the words Fuzzy Logic to explain any situation that they can solve with a couple of cases. When I go back to the books I... more

What's so off about the intro to Prokofiev's Dance of the Knights?

Now this question is by no means an attack on any conductor or orchestra, nor Prokofiev himself, but why does it seem that it's hard for everyone to get right into time with one another with this... more

When is theoretical computer science useful?

In class, we learned about the halting problem, Turing machines, reductions, etc. A lot of classmates are saying these are all abstract and useless concepts, and there's no real point in knowing... more

07/09/19

What is the Lydian Chromatic Concept?

I've recently found out about George Russell's book the _Lydian Chromatic Concept of Tonal Organization_ and I've been curious about exactly what the Lydian Chromatic Concept is and how it can be... more

Is finding the equivalence of two functions undecidable?

Is it impossible to know if two functions are equivalent? For example, a compiler writer wants to determine if two functions that the developer has written perform the same operation, what methods... more
Theory Math Logic Modulus

07/09/19

Split down a number in seconds to days, hours, minutes, and seconds?

I've heard that it's possible to accomplish this using the modulus `%` operator present in most programming languages. The real question is, how? I'm unfamiliar with how modulus works, so I've had... more

What is a Y-combinator?

How do combinators work? What are they good for? Are they useful in procedural languages?

What's a Turing machine?

What is a Turing machine and why do people keep mentioning it? My IBM PC is all I need to do my computation! Why does anyone care about these machines?

Most important musical concepts for writing songs on acoustic guitar?

I want to be able to write catchy/"cool sounding" guitar parts for songs. I am currently studying music theory extensively. I am just wondering, are there any guitar-specific musical concepts that... more

Fundamental and In-Depth Music Theory for an Absolute Beginner?

I know nothing about music theory, but I have been playing the guitar for over 5 years and have been only working with tabs. I want to learn music theory **from scratch, fundamentally and... more

Are doubly augmented and doubly diminished intervals practical?

In music theory when naming intervals, a lowered diminished interval is a doubly diminished interval (dd) and a raised augmented interval is a doubly augmented interval (AA). One example is a... more

07/03/19

Why can't a recursive-descent parser handle left recursion?

Could someone please explain to me why recursive-descent parsers can't work with a grammar containing left recursion?

What are "the fundamental categories of economics"?

I had an introductory class in marketing last week, and the professor wanted to test our previous knowledge of economics (we are juniors). He asked us this simple question: "What are the... more

07/03/19

How and when to abandon the use of arrays in C#?

Should you try to avoid using an array as much as possible when you will be adding a lot of elements? Should you use iStringMap instead? If so, what happens if you need more than two dimensions AND... more

Why do some arrangements of notes make a good melody and some don't?

A note by itself is not always particularly pleasant to hear. Why do some specific combinations of notes make a good, pleasant melody? Why are some people good at coming up with such pleasing... more

07/01/19

Why can't programs be proven?

Why can't a computer program be proven just as a mathematical statement can? A mathematical proof is built up on other proofs, which are built up from yet more proofs and on down to axioms - those... more

Finding the "Starting point" when creating a composition or score?

This is a fairly simple one, and hopefully not too wide-open to be permitted here: what approaches are available when sitting at a fresh screen or sheet of paper, or at your instrument, to create... more

How do you compose tuplets against straight notes?

I would like to know how to compose tuplets of odd numbers against even numbers on the piano (ie. 3 against 2). How would you go around composing something like this? I have been composing for some... more

Why have I never found any music written in the key of C Sharp Major?

Music is written in almost every key that corresponds to every note that is on my piano keyboard. There is clearly a C Sharp (black key right of C) on my piano keyboard but I don't recall ever... more

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.