Problem Detail: I have an Euclidean graph: each vertex is a point on the 2D plane, so the weight of each edge is the Euclidean distance between the vertices. I am randomly creating a path thru all the vertices and I Read More …
Blog
Complexity of sorting a 1-sorted array
Problem Detail: A $k$-sorted array is one in which every element is at most distance $k$ from its position when the array is sorted. The complexity of sorting such array is $O(nlog k)$. But if $k=1$, then $log k=0$ so what Read More …
what is difference between multilayer perceptron and multilayer neural network?
Problem Detail: When do we say that a artificial neural network is a multilayer Perceptron? And when do we say that a artificial neural network is a multilayer? Is the term perceptron related to learning rule to update the weights? Or Read More …
Min/max height of B-tree
Problem Detail: I have a question asking for the minimum and maximum height $h$ of a B-Tree with 1000 elements under following conditions: each block can save 1 to 4 records, the number of internal nodes is between 3 and 5 and Read More …
Poly-time reduction from ILP to SAT?
Problem Detail: So, as is known, ILP’s 0-1 decision problem is NP-complete. Showing it’s in NP is easy, and the original reduction was from SAT; since then, many other NP-Complete problems have been shown to have ILP formulations (which function as Read More …
Which kind of interrupt has the highest priority on 8086 processors?
Problem Detail: Which of the following interrupts has the highest priority in 8086 micro-processor: Overflow, NMI or Type 255? The book I read suggests that type 255 has highest priority. But most of the searches on google showed that it is Read More …
PTAS definition vs. FPTAS
Problem Detail: From what I read in the preliminary version of a chapter of the book “Lectures on Scheduling” edited by R.H. M¨ohring, C.N. Potts, A.S. Schulz, G.J. Woeginger, L.A. Wolsey, to appear around 2011 A.D. This is the PTAS Definition: Read More …
How to the examples for using the master theorem in Cormen work?
Problem Detail: I’m reading Cormen’s Introduction to Algorithms 3rd edition, and in examples of Master Method recursion solving Cormen gives two examples $3T( frac{n}{4} ) + nlog(n)$ $2T( frac{n}{2} ) + nlog(n)$ For the first example we have $a=3$ and $b=4$ Read More …
Is it intuitive to see that finding a Hamiltonian path is not in P while finding Euler path is?
Problem Detail: I am not sure I see it. From what I understand, edges and vertices are complements for each other and it is quite surprising that this difference exists. Is there a good / quick / easy way to see Read More …
Retrieving data from hash table ordered by insertion time
Problem Detail: By default, a hash table is unordered. I have a simple question on the retrieval of elements in a hash table Can we retrieve elements from a hash table in the same order as they are put inside? Asked Read More …