Problem Detail: Is there a difference between a “data dependence graph” and a “data dependency graph”? I have seen both terms – sometimes used interchangeably sometimes not. To make things even more complicated, a “data dependency graph” is sometimes also called Read More …
Blog
[Solved]: Dijkstra’s Algorithm with different color nodes
Problem Detail: You are given a directed graph G = (V, E) and nodes s, t. Nodes are colored red, white, and blue. A path from s to t is called colorful if it contains both a red node and a Read More …
[Solved]: Why is there readonly (const) in C++, but not writeonly (sink)?
Problem Detail: C++ initially had “readonly” and “writeonly” qualifiers, before “readonly” was renamed to “const”, and “writeonly” removed. My question is: What are the problems with “writeonly” (or a “sink” qualifier)? There are (non-object oriented) programming languages with “in”, “out” and Read More …
[Solved]: Can we create binomial heaps in linear time?
Problem Detail: I’m studying binomial heaps in anticipation for my finals and the CLRS book tells me that insertion in a binomial heap takes $Theta(log n)$ time. So given an array of numbers it would take $Theta(nlog n)$ time to convert Read More …
[Solved]: AVL Trees Height-Balance Property
Problem Detail: An AVL tree is one that satisfies the height-balance property which states that: For every position p of T, the heights of the children of p differ by at most 1. Below is an example AVL tree. However, I’ve Read More …
[Solved]: A relational algebra extended to model the full DML (“CRUD”) domain
Problem Detail: There are multiple references about the relational algebra for modeling queries (SELECT) but I have found very very little on the expanded algebra that would include concepts in all of DML such as INSERT, UPDATE, DELETE and maybe even Read More …
[Solved]: MIPS with one read port in the register file?
Problem Detail: I’m studying the MIPS multi-cycle datapath, and I’m wondering what would happen if there was only one read port in the register file for certain instructions. First, for R-type instructions, I know that it takes in 2 registers(for example, Read More …
[Solved]: What is a standard way to construct a turing machine for any function to compute
Problem Detail: I am new to turing machines, I am having problems with mapping a function to a turing maching that computes that particular function. for example: f(x) = 2x + 3 n>= 0 MIN(x,y) leaves the smallest between x and Read More …
[Solved]: Longest Path A*, Admissible Heuristics, and Optimalness
Problem Detail: Im working on a modified A Star algorithm, that instead of attempting to find the shortest path, it tries to find the longest past, or in my specific case, the highest weighted path. I have some number of classes, Read More …
[Solved]: Parsing arbitrary context-free grammars, mostly short snippets
Problem Detail: I want to parse user-defined domain specific languages. These languages are typically close to mathematical notations (I am not parsing a natural language). Users define their DSL in a BNF notation, like this: expr ::= LiteralInteger | ( expr Read More …