logo

Crowdly

Browser

Додати до Chrome

IN2002 Data Structures and Algorithms (PRD1 A 2024/25)

Шукаєте відповіді та рішення тестів для IN2002 Data Structures and Algorithms (PRD1 A 2024/25)? Перегляньте нашу велику колекцію перевірених відповідей для IN2002 Data Structures and Algorithms (PRD1 A 2024/25) в moodle4.city.ac.uk.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Given the binary tree below what would be the contents of the queue/stack after visiting the node with key 14 using an in-order depth-first traversal?

tree

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

What is the definition of a tree's root?

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

What is the space complexity of performing a breadth-first traversal of a binary tree with n nodes?

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

Given the algorithm bla, the binary tree and the pointer p below, what would be a call to bla( p ) return?

Function bla(TreeNode b)

     IF b = NULL

          return 0

     return bla( b.right ) + bla( b.left ) + 1

0%
0%
0%
0%
Переглянути це питання
How much memory - in Big-Oh notation - is needed to store n numbers in an array?

Переглянути це питання
Suppose we are implementing quadratic probing on a hash table with 71 slots and with a hash function hash(x) = x mod 71. An element with key 63 is to be inserted and the first three locations attempted are already occupied. What is the next location that will be tried?

0%
0%
0%
0%
Переглянути це питання
Suppose we are implementing linear probing on a hash table with 100 slots and with a hash function hash(x) = x mod 100. An element with key 5498 is to be inserted and the first three locations attempted are already occupied. What is the next location that will be tried?

0%
0%
0%
0%
Переглянути це питання
What is the range of values computed by the hash function hash(x)= x mod 100?

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

Which type of tree traversal does not use a stack?

Переглянути це питання
What is Chaining in a Hash Table?

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

Хочете миттєвий доступ до всіх перевірених відповідей на moodle4.city.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome