Recent questions tagged Data-structure-questions-answers-pancake-sort

0 votes
    There is a one line error in the following routine. Find that line. 1. int Max(int a[], int n) 2. { 3. int mi, i; 4. for (mi = 0, ... (a[i] > a[mi]) 6. mi = i; 7. return mi; 8. }...
asked Dec 29, 2022 in Technology by JackTerrance
0 votes
    When we realize a specific implementation of a pancake algorithm, every move when we find the greatest of the ... b) Exponential functions c) Logarithmic functions d) Permutations...
asked Dec 29, 2022 in Technology by JackTerrance
0 votes
    In a computational complexity theory, a problem with decision making is said to be NP-complete when it is both ... c) Non-deterministic Polynomial time d) Non Probabilistic time...
asked Dec 29, 2022 in Technology by JackTerrance
0 votes
    Pancake Sorting appears in which of the following? a) Frequency Scaling b) Storage Virtualization c) Parallel Processing d) Neural Networking...
asked Dec 28, 2022 in Technology by JackTerrance
0 votes
    How many flips does the simplest of pancake sorting techniques require? a) 3n−3 flips b) 2n-4 flips c) 2n-3 flips d) 3n-2 flips...
asked Dec 28, 2022 in Technology by JackTerrance
0 votes
    There is one small error in the following flip routine. Find out which line it is on. void flip(int arr[], int i) 2 { 3 int t, ... 12 } a) Line 3 b) Line 5 c) Line 7 d) Line 9...
asked Dec 28, 2022 by JackTerrance
0 votes
    Which operation is most essential to the process of pancake sort? a) Flip the given data b) Find the largest of ... least of given data d) Inserting something into the given data...
asked Dec 28, 2022 in Technology by JackTerrance
0 votes
    What is the time complexity for a given pancake sort given it undergoes “n” flip operations? a) O(n) b) O(n2) c) O(n3) d) O(2n)...
asked Dec 28, 2022 in Technology by JackTerrance
To see more, click for the full list of questions or popular tags.
...