Recent questions tagged algorithms

1 votes
1 answer
2132
How LRU page replacement algorithm works? I am unable to visualize it from book hamacher. Please anyone explain in simple language.
1 votes
3 answers
2133
0 votes
2 answers
2134
Which sorting algorithim is best ifexhactly only half of the elements are in correct position ?
1 votes
3 answers
2135
Which sorting algorithm can be used to sort a random linked list with minimum time complexity ?A)mergesortB)quicksortC)radixsortD)insertionsortE)heapsort
0 votes
1 answer
2136
Can any algorithms exist which take less than O(1) time????
1 votes
1 answer
2137
0 votes
1 answer
2138
Question:What is the time complexity of Huffman algorithms when the input is already sorted
3 votes
4 answers
2140
2 votes
3 answers
2141
0 votes
2 answers
2142
A list of elements are given A - <3,1,4,1,5,9,2,6,5,3,5,8,9 >Show Howw the "Pivot" and quick sort algorithm work.finally show the Best Case analysis for quick sort .
0 votes
1 answer
2143
Consider the following instance of the knapsack problem: n=3 , W=50 , (v1,v2,v3) = (60,100,120) and weight (w1,w2,w3) = (10,20,30) .solve the given knapsack problem apply...
1 votes
1 answer
2144
0 votes
2 answers
2145
0 votes
2 answers
2146
0 votes
3 answers
2147
Big 'O' estimate for Factorial Functions and Logarithm of Factorial Function i.e. n! and log n! isa)O(n!) and O(n log n)b)O(nn) and O(n log n)c)O(n!) and O(log n!)d)O(nn)...
2 votes
4 answers
2148
Is the below statement correct:Bellman Ford finds all negative weight cycles in the graph.This is true or false?
1 votes
1 answer
2151
0 votes
2 answers
2152
which is correct option? does answer depends on the definition of levels?
0 votes
0 answers
2156
1 votes
1 answer
2157
Number of Cateogires are 5, Thier total weights are w1,w2,w3,w4,w5={7,2,4,8,6}b1,b2,b3,b4,b5={5,6,4,3,2}M=6=Maximum Capacity= WI am having confusion How to solve using dy...
3 votes
1 answer
2158
CAN SOMEONE SOLVE THE NUMBER OF COMPARISIONS FOR COMPUTING MIN AND MAX IN AN ARRAY USING DIVIDE N CONQUER??RECURRENCE RELATION IS$ T(n) = 2 T(\frac{n}{2}) + 2 $IT SHOULD ...
0 votes
1 answer
2159
How to find space complexity of fibbo series ..
0 votes
2 answers
2160
A file contain charecters a,e,i,o,u,s,t with frequencies 10,15,12,3,4,13,&1 respectively , if we use huffman codeing for data compression then avg code length will be .