1. Question: The recurrence relation T(n)=mT(n/2)+an2 is satisfied by___

    A
    T(n)=O(nm)

    B
    T(n)=O(m*log(m))

    C
    T(n)=O(n*log(m))

    D
    T(n)=O(m*log(n))

    Note: Not available
    1. Report
  2. Question: If 'data' is a circular array of CAPACITY elements and 'last' is an index in that array, what is the formula for the index after 'last'?

    A
    (last % 1) + CAPACITY

    B
    last % (1 + CAPACITY)

    C
    (last + 1) % CAPACITY

    D
    last + (1 % CAPACITY)

    Note: Not available
    1. Report
  3. Question: Consider the node of a complete binary tree whose value is stored in data[i] for an array implementation. If this node has a right child, where will the right child's value be stored (the array's first index is 0)?

    A
    data[i+1]

    B
    data[i+2]

    C
    data[2*i + 1]

    D
    data[2*i + 2]

    Note: Not available
    1. Report
  4. Question: In a complete binary tree, the parent of any node k can be determined by ________.

    A
    2k

    B
    2k+1

    C
    K/2

    D
    2K-1

    Note: Not available
    1. Report
  5. Question: Consider a linked list of n elements which is pointed by an external pointer. What is the time taken to delete the element which is a successor of the pointed element by a given pointer?

    A
    O(1)

    B
    O(log2n)

    C
    O(n)

    D
    O(n*log2n)

    Note: Not available
    1. Report
  6. Question: Suppose X is a B-tree leaf containing 41 entries and has at least one sibling. Which of the statements would be true in this case?

    A
    Any sibling of X is also a leaf

    B
    Any sibling of X contains at least 41 entries

    C
    The parent of X has exactly 42 entries

    D
    X has at least 41 siblings

    Note: Not available
    1. Report
  7. Question: In a complete binary tree of n nodes, how far are the most distant two nodes? Assume each in the path counts 1. Assume log(n) is log base 2.

    A
    about log(n)

    B
    about 2*log(n)

    C
    about 3*log(n)

    D
    about 4*log(n)

    Note: Not available
    1. Report
  8. Question: In a graph G, F is a spanning forest of G if (i)F is a subgraph of G containing all the nodes of G (ii)F is an order forest containing trees T1,T2,...Tn (iii)Ti contains all the nodes that are reachable in G from the root Ti and are contained in Tj for some j<i.. Which of the above conditions is/are true?

    A
    (i),(ii)

    B
    (ii),(iii)

    C
    (i),(iii)

    D
    (i),(ii) and (iii)

    Note: Not available
    1. Report
  9. Question: Which information is not saved in the activation record when a function call is executed?

    A
    Current depth of recursion

    B
    Formal parameters

    C
    Location where the function should return when done

    D
    Local variables

    Note: Not available
    1. Report
  10. Question: The linked list implementation of sparse matrices is superior to the generalized dope vector method because it is __________.

    A
    conceptually easier and completely dynamic

    B
    efficient if the sparse matrix is a band matrix

    C
    efficient in accessing an entry

    D
    all of these

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd