logo

Crowdly

Browser

Додати до Chrome

Questions Bank (1394098 total)

Given the array [88, 56, 100, 2, 25], and the selection sort algorithm to sort this array in increasing order, what will the array look like after the first two elements are placed in their correct sorted order?

0%
100%
0%
0%
0%
0%
Переглянути це питання

How does interpolation search algorithm estimate the position of the key in a sorted array?

0%
100%
0%
0%
0%
0%
Переглянути це питання

Скільки дорівнюватиме теоретична

сума

горизонтальних кутів в теодоліт

ному ході, якщо у ході виміряно 6 правих за

ходом

горизонталь

них кутів, а дирекційні кути початкового і кінцевого напрямків

відповідно дорівнюють α

п

= 125˚35' 

α

к = 126˚35' ?

Переглянути це питання

Дано

визначення класів і об’єктів:

class A {

  public:

          int a;

};

class B: public A {

  public:

          int b;

};

class C: public A, public B {

  public:

          int c;

};

class D: public B, public C {

  public:

          int d;

};

A oA;

B oB;

C oC;

D oD;

      Якими будуть розміри об’єктів оA, oB, oC, oD ? (дані

типу int займають 4 байти)

      Записати всі поля об’єктів оA, oB, oC, oD

Переглянути це питання

Which of the following statements about Insertion Sort is correct?

0%
0%
0%
0%
100%
Переглянути це питання

Поляризація світла — просторова орієнтація магнітної складової частини електромагнітної хвилі.

0%
100%
Переглянути це питання
For the recurrence relation T[3k]=9T[3k-2]+k·3k, find the correct asymptotic bound in terms of k.
100%
0%
0%
0%
0%
Переглянути це питання

In the Floyd-Warshall all shortest path algorithm, what is the purpose of introducing an intermediate vertex k during iteration?

0%
0%
0%
0%
0%
0%
Переглянути це питання

Which of the following scenarios would cause the greedy approach (rational knapsack algorithm, choosing items by highest value-to-weight ratio) to fail in solving the 0/1 (or binary) knapsack optimally?

0%
0%
0%
0%
0%
100%
Переглянути це питання

Based on the discussion from our lectures, what is the running time of the preprocessing step of the string matching algorithm with finite automata (i.e., of the step where we compute the transition function)? Recall that n, and m are the sizes of the text and pattern, respectively, and Σ is the alphabet. (Choose the tightest bound.)

0%
0%
0%
0%
100%
Переглянути це питання