Top "Computer-science" questions

Computer science (CS) is the science behind programming.

Working through an example of Amdahl's Law with respect to percentage speedup

I am reading through "Computer Architechture: A Quantitative Approach 5th ed" and am trying to grasp Amdahl's law, when it …

performance math computer-science computer-architecture parallelism-amdahl
Why aren't recursively enumerable languages undecidable

This is the definition of decidable from Wikipedia In computability theory, an undecidable problem consists of a family of instances …

computer-science turing-machines formal-languages
NFA to DFA question

First, this is not a question asking for the algorithm to convert a NFA to DFA. It's known (and proved) …

computer-science finite-automata computation-theory
What are the total number of possible ordered trees with N nodes?

For example for N=3, we can find easily by listing them all, but when asked for any arbitrary N value …

algorithm tree structure computer-science catalan
two way set associative cache referencing using lru

I am trying to understand how caching works. I am working on a problem to better understand this concept: Given …

caching computer-science computer-architecture lru
Difference between D Latch Schematic and D Flip Flop Schematic

I heard that the main difference between latch and flip flops is that latches are asynchronous while flip flops are …

computer-science hardware hdl flip-flop circuit-diagram
Are there any programs to draw and test state machines, turing machines, etc?

When I go back to school after Thanksgiving, I'll be taking a course in CS Theory covering topics such as …

computer-science state-machine finite-automata
Prove NP-Completeness clique + independent set graph

"Prove that it is NP-Complete to determine given input G and k whether G has both a clique of size …

algorithm computer-science np-complete clique-problem
How do I generate sentences from a formal grammar?

What's a common way of generating sentences from a grammar? I want an algorithm that's sort of the opposite of …

compiler-construction computer-science grammar parsing
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 …

math compiler-construction function computer-science theory