O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

database final

Duncan Levings 75 perguntas

Fazer o quiz

Este quiz tem tipos de pergunta que abrem no player de sempre.

Perguntas do quiz (75)

  1. 1Given an array where numbers are in range from 1 to n6, which sorting algorithm can be used to sort these numbers in linear time?
    1. Ainsertion sort
    2. Bquick sort
    3. Cradix sort
    4. Dnot possible
  2. 2Which is the best sorting algorithm to use for the elements in array that is more than 1 million?
    1. Amerge sort
    2. Bbubble sort
    3. Cquick sort
    4. Dinsertion sort
  3. 3Consider a situation where swap operation is very costly, which of the following sorting algorithms should be preferred so that the number of swap operations are minimized?
    1. AHeap sort
    2. BSelection sort
    3. Cinsertion sort
    4. Dmerge sort
  4. 4Suppose we have an O(n) time algorithm that finds median of an unsorted array. Now consider a quicksort implementation where we first find median uing the above algorithm, then use median as pivot. What will be the worst case time complexity of this modified quicksort?
    1. AO(n^2 log n)
    2. BO(n^2)
    3. CO(n log n log n)
    4. DO(n log n)
  5. 5What is the time complexity for insertitem in an AVL tree
    1. AO(1)
    2. BO(n)
    3. CO(log n)
    4. DO(n log n)
  6. 6Assume that a mergesort algorithm in the worst case takes 30 seconds for an input size of 64. Which of the following most closely approximates the maximum input size of a problem that can be solved in 6 minutes?
    1. A256
    2. B512
    3. C1048
    4. D2048
  7. 7Splay trees are always balanced
    1. AVerdadeiro
    2. BFalso
  8. 8Worse case performance of a splay tree is O(n)
    1. AVerdadeiro
    2. BFalso
  9. 9Which of the following sorting algorithms in its typical implementation gives best performance when applied to an array which is sorted or almost sorted (max 1 or 2 elements misplaced)
    1. Aquick sort
    2. Bheap sort
    3. Cmerge sort
    4. Dinsertion sort
  10. 10Which kind of tree makes sure the height is balanced
    1. Abinary tree
    2. Bheap tree
    3. CAVL tree
    4. Dskip list

Informações

Descrição
Computer Science Quiz sobre database final, criado por Duncan Levings em 17-04-2019.
Idioma
English
Visualizações
4
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?