Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Algorithms
Recent questions tagged algorithms
3
votes
1
answer
2131
ISI 2014
Read the C code given below. What would be the output of the following program? Justify your answer. #include <stdio.h> int myrecurse(int a, int b){ return (b == 1 ? a: myrecurse(a, b-1) + a); } main() { int a[]= {2,3,4,5,6}; ... an $O(n log n)$ algorithm to determine whether the given sequence $S$ has a subsequence whose sum is zero, and justify the correctness of the algorithm.
Read the C code given below. What would be the output of thefollowing program? Justify your answer. #include <stdio.h int myrecurse(int a, int b){ return (b == 1 ? a: myr...
vidhyuth
408
views
vidhyuth
asked
Apr 25, 2017
Written Exam
isi2014
programming-in-c
algorithms
+
–
1
votes
1
answer
2132
LRU_page replacement algorithm.
How LRU page replacement algorithm works? I am unable to visualize it from book hamacher. Please anyone explain in simple language.
How LRU page replacement algorithm works? I am unable to visualize it from book hamacher. Please anyone explain in simple language.
elakashi sharma
572
views
elakashi sharma
asked
Apr 24, 2017
CO and Architecture
algorithms
+
–
1
votes
3
answers
2133
Made Easy test series
"A" sort a particular dataset of size n using merge sort in 640 msec, "B" uses the same algorithm on dataset of size 16, it takes 256 msec to sort them. what is size of data set used by "A" A. 32 B. 64 C. 128 D. None of above
"A" sort a particular dataset of size n using merge sort in 640 msec, "B" uses the same algorithm on dataset of size 16, it takes 256 msec to sort them. what is size of d...
shreyansh jain
768
views
shreyansh jain
asked
Apr 24, 2017
Algorithms
algorithms
merge-sort
made-easy-test-series
+
–
0
votes
2
answers
2134
Sorting
Which sorting algorithim is best if exhactly only half of the elements are in correct position ?
Which sorting algorithim is best ifexhactly only half of the elements are in correct position ?
Angkit
1.3k
views
Angkit
asked
Apr 23, 2017
Others
sorting
algorithms
+
–
1
votes
3
answers
2135
Which sorting algorithm can be used to sort a random linked list with minimum time complexity ?
Which sorting algorithm can be used to sort a random linked list with minimum time complexity ? A)mergesort B)quicksort C)radixsort D)insertionsort E)heapsort
Which sorting algorithm can be used to sort a random linked list with minimum time complexity ?A)mergesortB)quicksortC)radixsortD)insertionsortE)heapsort
Angkit
14.5k
views
Angkit
asked
Apr 23, 2017
Algorithms
sorting
algorithms
+
–
0
votes
1
answer
2136
Basic Question
Can any algorithms exist which take less than O(1) time????
Can any algorithms exist which take less than O(1) time????
akash.dinkar12
537
views
akash.dinkar12
asked
Apr 21, 2017
Algorithms
algorithms
time-complexity
descriptive
+
–
1
votes
1
answer
2137
Generate atleast 3 solutions for 5 x 5 queen problem
Genearate atleast 3 solutions for 5 x 5 queen problem
Genearate atleast 3 solutions for 5 x 5 queen problem
LavTheRawkstar
2.8k
views
LavTheRawkstar
asked
Apr 19, 2017
Algorithms
backtracking
algorithms
descriptive
+
–
0
votes
1
answer
2138
Huffman coding question
Question:What is the time complexity of Huffman algorithms when the input is already sorted
Question:What is the time complexity of Huffman algorithms when the input is already sorted
Rackson
713
views
Rackson
asked
Apr 19, 2017
Algorithms
algorithms
huffman-code
time-complexity
descriptive
+
–
1
votes
4
answers
2139
difference between dynamic programming and divide and conquer technique is
What is the difference between dynamic programming and divide and conquer technique,
What is the difference between dynamic programming and divide and conquer technique,
LavTheRawkstar
6.2k
views
LavTheRawkstar
asked
Apr 17, 2017
Algorithms
divide-and-conquer
algorithms
dynamic-programming
programming
+
–
3
votes
4
answers
2140
solve the recurrence using any method just solve it
T(n) = 100 T (n/99) + log(n!) Answer is T(n) = θ (n log n) a)answer is justified b)answer is not justified c)cannot be determined d)none
T(n) = 100 T (n/99) + log(n!) Answer is T(n) = θ (n log n)a)answer is justifiedb)answer is not justifiedc)cannot be determinedd)none
LavTheRawkstar
4.4k
views
LavTheRawkstar
asked
Apr 16, 2017
Algorithms
algorithms
time-complexity
asymptotic-notation
recurrence-relation
+
–
2
votes
3
answers
2141
With quick sort The results after first partioning of the given array
With quick sort The results after first partioning of the given array. A = (2,8,7,1,3,5,6,4,9). Analysis the time complexity of Quick sort in the best case.
With quick sort The results after first partioning of the given array. A = (2,8,7,1,3,5,6,4,9).Analysis the time complexity of Quick sort in the best case.
LavTheRawkstar
1.2k
views
LavTheRawkstar
asked
Apr 15, 2017
Algorithms
algorithms
quick-sort
time-complexity
sorting
+
–
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 >
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 .
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 .
LavTheRawkstar
1.7k
views
LavTheRawkstar
asked
Apr 15, 2017
Algorithms
algorithms
quick-sort
+
–
0
votes
1
answer
2143
Fractional Knapsack(Greedy Method)
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 applying greedy algorithm.
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...
LavTheRawkstar
4.0k
views
LavTheRawkstar
asked
Apr 15, 2017
Algorithms
algorithms
knapsack-problem
greedy-algorithm
+
–
1
votes
1
answer
2144
Algorithms Basic Question
akash.dinkar12
428
views
akash.dinkar12
asked
Apr 11, 2017
Algorithms
time-complexity
algorithms
+
–
0
votes
2
answers
2145
Internetworking Routing
waht happens in internetworking routing somebody please tell please
waht happens in internetworking routing somebody please tell please
LavTheRawkstar
5.1k
views
LavTheRawkstar
asked
Apr 9, 2017
Computer Networks
computer-networks
algorithms
routing
+
–
0
votes
2
answers
2146
What happens in Multicast Routing algorithm
What happens in Multicast Routing algorithm somebody please tell with diagram ?
What happens in Multicast Routing algorithm somebody please tell with diagram ?
LavTheRawkstar
538
views
LavTheRawkstar
asked
Apr 9, 2017
Computer Networks
computer-networks
algorithms
+
–
0
votes
3
answers
2147
Asymptotic Notation
Big 'O' estimate for Factorial Functions and Logarithm of Factorial Function i.e. n! and log n! is a)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) and O(log n!)
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)...
Devshree Dubey
2.3k
views
Devshree Dubey
asked
Apr 8, 2017
Algorithms
algorithms
asymptotic-notation
+
–
2
votes
4
answers
2148
Bellman Ford Shortest path
Is the below statement correct: Bellman Ford finds all negative weight cycles in the graph. This is true or false?
Is the below statement correct:Bellman Ford finds all negative weight cycles in the graph.This is true or false?
Bongbirdie
1.9k
views
Bongbirdie
asked
Apr 6, 2017
Algorithms
algorithms
shortest-path
bellman-ford
true-false
+
–
2
votes
1
answer
2149
Bellman Ford
If there is a negative edge cycle present in a graph, we all know that Bellman Ford has the capability to detect it. My doubt is that, even after the presence of a negative weighted cycle, will Bellman Ford Algorithm give the correct answer or it will simply say NO..shortest path cannot be computed!?
If there is a negative edge cycle present in a graph, we all know that Bellman Ford has the capability to detect it. My doubt is that, even after the presence of a negati...
Bongbirdie
859
views
Bongbirdie
asked
Apr 6, 2017
Algorithms
shortest-path
bellman-ford
algorithms
+
–
1
votes
1
answer
2150
#Totally Confused# please tell Using Dijkstra Algorithm solve shortest path algorithm from A to D.
Using DIjkstra algorithm solve shortest path algorithm from A to D
Using DIjkstra algorithm solve shortest path algorithm from A to D
LavTheRawkstar
982
views
LavTheRawkstar
asked
Apr 6, 2017
Computer Networks
algorithms
shortest-path
dijkstras-algorithm
computer-networks
+
–
1
votes
1
answer
2151
cil-2017
VS
236
views
VS
asked
Apr 2, 2017
Algorithms
cil-2017
algorithms
radix-sort
+
–
0
votes
2
answers
2152
coal india
which is correct option? does answer depends on the definition of levels?
which is correct option? does answer depends on the definition of levels?
anonymous
389
views
anonymous
asked
Mar 29, 2017
DS
algorithms
data-structures
+
–
0
votes
3
answers
2153
Solve the following Recurrence using any method
T(n) = 2n T $(\frac{n}{2})$ + nn
T(n) = 2n T $(\frac{n}{2})$ + nn
LavTheRawkstar
1.1k
views
LavTheRawkstar
asked
Mar 27, 2017
Algorithms
algorithms
time-complexity
asymptotic-notation
recurrence-relation
+
–
1
votes
1
answer
2154
Solve the following recurrence using any method
T(n)=T $(\frac{n}{2})$ + T $(\frac{n}{4})$ + n2
T(n)=T $(\frac{n}{2})$ + T $(\frac{n}{4})$ + n2
LavTheRawkstar
541
views
LavTheRawkstar
asked
Mar 27, 2017
Algorithms
algorithms
time-complexity
asymptotic-notation
recurrence-relation
+
–
0
votes
3
answers
2155
Solve the Recurrence using any method which can solve it quickly in less steps
Solve the Recurrence using any method T(n)=2 T ($\frac{n}{4}$ ) - n2
Solve the Recurrence using any methodT(n)=2 T ($\frac{n}{4}$ ) - n2
LavTheRawkstar
564
views
LavTheRawkstar
asked
Mar 27, 2017
Algorithms
algorithms
recurrence-relation
+
–
0
votes
0
answers
2156
Calculate the shortest path using TSP Greedy Appraoch
Calculate the shortest path using TSP Greedy Appraoch
Calculate the shortest path using TSP Greedy Appraoch
LavTheRawkstar
422
views
LavTheRawkstar
asked
Mar 26, 2017
Algorithms
algorithms
shortest-path
+
–
1
votes
1
answer
2157
#Confusion Is it necessary to arrange the weights in Ascending order while solving 0/1 Knapsack problem using Dynamic
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...
LavTheRawkstar
2.6k
views
LavTheRawkstar
asked
Mar 25, 2017
Algorithms
knapsack-problem
algorithms
+
–
3
votes
1
answer
2158
min max using divide and conquer
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 COME TO $ \frac{3*n}{2} - 2 $ ??
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 ...
sushmita
2.7k
views
sushmita
asked
Mar 23, 2017
Algorithms
divide-and-conquer
algorithms
+
–
0
votes
1
answer
2159
Dynamic programing
How to find space complexity of fibbo series ..
How to find space complexity of fibbo series ..
air1ankit
2.7k
views
air1ankit
asked
Mar 23, 2017
Algorithms
algorithms
space-complexity
normal
+
–
0
votes
2
answers
2160
gready
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 .
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 .
air1ankit
437
views
air1ankit
asked
Mar 22, 2017
Algorithms
huffman-code
numerical-answers
algorithms
+
–
Page:
« prev
1
...
67
68
69
70
71
72
73
74
75
76
77
...
118
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register