Problem Detail: I am working on a special case of the longest path problem. For a cyclic directed graph $G=(V, E)$, where the edge-weights are probability values (i.e., $P(_) = w(s, q)$ with $s,q in V$), my aim is to find Read More …
Category: Uncategorized
[Solved]: Efficient algorithm for finding weakly connected components
Problem Detail: We recently studied Tarjan’s algorithm at school, which finds all strongly connected components of a given graph. I was curious however how one would find all weakly connected components (I had to search a bit to actually find the Read More …
[Solved]: How to convert PDA to CFG
Problem Detail: I learned how to convert context-free grammar to pushdown automata but how can I do the opposite? to convert PDA to CFG? For example: to write CFG for the automata My attempt: $S=A_{03}$ because $q_{color{blue}0}$ is the initial state Read More …
[Solved]: Memory access on byte/word addressable memory
Problem Detail: I’m doing a question on architecture and I’ve come across this question which I do not understand how to answer the question. Q. How many bits are required to address 4G x 32-bit main memory if a) Main memory Read More …
[Solved]: How are lamport clocks implemented in real world distributed systems?
Problem Detail: Can anyone explain, how lamport clocks implementations are used in modern distributed systems? Can you name an open source package which implements this algorithm? Asked By : Nitish Upreti Answered By : Grisha Weintraub Amazon’s Dynamo [1] is a distributed storage Read More …
[Solved]: Subset sum algorithm in O(n³ log n)?
Problem Detail: I think that I have found an algorithm which resolve exactly the subset sum problem in $O(N^3)$ in the worst case, only for positive numbers. After my research, I’m lost between all the algorithms for this problem. $O(2^N*N)$ for Read More …
[Solved]: How does variance in task completion time affect makespan?
Problem Detail: Let’s say that we have a large collection of tasks $tau_1, tau_2, …, tau_n$ and a collection of identical (in terms of performance) processors $rho_1, rho_2, …, rho_m$ which operate completely in parallel. For scenarios of interest, we may Read More …
[Solved]: How to deal with questions having two or more asymptotic notations
Problem Detail: The following was asked as part of a homework assignment and I am not asking for the solution to these but rather tips or resources on how to solve this and similar questions, Let $f(n)$ and $g(n)$ be two Read More …
[Solved]: Matrix Multiplication Algorithms for Non-Square Matrices
Problem Detail: I’m interested in learning about some of the algorithms available for multiplying non-square matrices, yet despite exhaustive Googling efforts I have been unable to find any discussions of such algorithms except for a couple of extremely general pieces of Read More …
[Solved]: Why is the CPU Involved During Keyboard Echo?
Problem Detail: I’m currently studying for a computer science exam, and I’ve come across a concept that has me somewhat stumped. When one types a key on the keyboard, an ASCII character is transmitted to the CPU. Upon reception of this Read More …