logo

Crowdly

Browser

Додати до Chrome

COMP 6651 NN 2244 (Winter 2025)

Шукаєте відповіді та рішення тестів для COMP 6651 NN 2244 (Winter 2025)? Перегляньте нашу велику колекцію перевірених відповідей для COMP 6651 NN 2244 (Winter 2025) в moodle.concordia.ca.

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

Given two polygons P and Q, with nP and nQ extreme points.

Assume P and Q are both given with their list of extreme points in, e.g., the CW order, starting with an arbitrary extreme point.

What is the best complexity of their intersection check, i.e., checking whether they intersect or not.

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

What is the most expensive phase in Graham's Scan in terms of the runtime?

 

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

What will be the cross product of the vectors 2i + 3j + k and 3i + 2j + k?

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

We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap.

The total time required for this is: 

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

What is the time complexity of Build Heap operation? 

(Build Heap is used to build a max (or min) binary heap from a given array. Build Heap is used in Heap Sort as a first step for sorting.)

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

We work with dynamic tables and we use the following common heuristic:

              When the table is full, double the existing table size.

              The load factor of a table is at least 1/2 and

              The amount of wasted space never exceeds half the total space in the table.

 

Let  

NUMi  = number of items stored after the ith operation

SIZEi = size of the table after the ith operation. 

Which potential function (function phi) do you define:

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

Consider the following program

For i from 1 to n

                 Makeset(i)

For i from 1 to n-1

                 Union(i, i+1)

Assume that the disjoint sets data is implemented as disjoint trees with union by rank heuristic

What is the number of trees in the forest and the maximum height of a tree after executing this code?

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

In BFS, how many times a node is visited in a directed graph?

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

Consider the following graph.

 DFS

The following sequences of depth first search are proposed:

A. abfchg

B. abghbc

C. abcghf

D. abfhgc 

Which of the following is correct?

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

The off-line minimum problem asks us to maintain a dynamic set T of elements from the domain {1; 2; ... ; n} under the operations INSERT and EXTRACT-MIN. We are given a sequence S of n INSERT and m EXTRACT-MIN calls, where each key in {1; 2; ... ; n} is inserted exactly once. We wish to determine which key is returned by each EXTRACTMIN call. Specifically, we wish to fill in an array extracted[1..m], where for i = 1; 2; ... ; m; extracted[i] is the key returned by the ith EXTRACT-MIN call. The problem is ”off-line” in the sense that we are allowed to process the entire sequence S before determining any of the returned keys a. In the following instance of the off-line minimum problem, each INSERT is represented by a number and each EXTRACT-MIN is represented by the letter E:

3, E, 7, 1, 4, E, E, 5, 2, 8, E, 6, E, 9, E, 15.

Fill in the correct values in the extracted array with the following format: 1, 2, 3, ... (no punctuation at the end)

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

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.concordia.ca?

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

Browser

Додати до Chrome