AI Questions
AI Questions
12:30-1:30
22/4/2024
عبدالرحمن حيدر/ د.ا
Faculty of Computers & Information, Assiut University
Course code: CS311
3rd Level
Midterm Exam
Duration: One hour
This exam for the following program(s): CS
* رقم الجلوس
162021059
* المستوي
االول
الثاني
الثالث
2014 الرابع
الرابع 2015
الرابع 2016
الرابع 2017
الرابع 2018
الرابع 2019
الرابع 2020
4
* البرنامج
عام
بايو
هندسة
ذكاء صناعي
5
* رقم المعمل
٠ج
٠د
٠هـ
١ب
١ج
١د
١هـ
٢أ
٢ب
٢ج
٢د
٢هـ
٣أ
٣ب
٣ج
٣د
٣هـ
٤أ
٤ب
٤ج
٤د
٤هـ
6
* رقم الكمبيوتر
4
7
BLDH
Will be reviewed
O(n log n)
O(n^2)
O(n^2 log n)
Will be reviewed
A forward edge
A cross edge
A back edge
Will be reviewed
10
Division(n)
while n > 1
do n ← n/2;
Θ(n)
Θ(log n)
Θ(1 / log n)
Θ(n log n)
Will be reviewed
11
Linked list
Tree
Array
Will be reviewed
12
adjacency list contain some vertices (V) and eges (E) , and it used in an undirected graph to
implement it.
if we say the e=(s,a) mean that the s share a border with a
Will be reviewed
13
True
False
Will be reviewed
14
Let f(n) and g(n) be asymptotically nonnegative functions. If f(n)= O(g(n)), and f(n)
= Big-Omega(g(n)), then f(n) = Θ(g(n)).
True
False
Will be reviewed
15
A forward edge
A cross edge
A back edge
Will be reviewed
16
A person wants to visit some places. He starts from a vertex and then wants to visit
every place connected to this vertex and so on. What algorithm he should use?
Kruskal’s algorithm
Dijkstra’s algorithm
Will be reviewed
17
Stack
Queue
Linked List
Tree
Will be reviewed
18
For a connected and undirected graph G = (V, E), then |E| ≥ |V|-1.
True
False
Will be reviewed
19
A directed graph has a cycle if and only if its depth-first search reveals a forward edge.
True
False
Will be reviewed
20
True
False
Will be reviewed
21
True
False
Will be reviewed
22
True
False
Will be reviewed
23
For a graph with n vertices and m edges, the time complexity of DFS is:
O(n + m)
O(n)
O(m)
O(n*m)
Will be reviewed
24
True
False
Will be reviewed
25
A k-ary tree is a tree in which every node has at most k children. In a k-ary tree with n
nodes and height h, which of the following is an upper bound for the maximum
number of leaves as a function of h, k, and n?
h^k
k^h
log_k h
log_k n
Will be reviewed
26
True
False
Will be reviewed
27
the selection work as Sr,S,Sl and the best case is if we find the number which select about it
from the first step in the S sublist,
The divide and conquer with selection is go as breaking the problem into subproblems
SR,Sv,Sl
the best case if find the selected number in the Sv or if we find it in the first index in each Sl,Sr
if we selecte a number k
1- (S,k) ====> (Sl,k) if the k<Sv
2- (S,k) ====> (Sv,k) if the k=Sv
3- (S,k) ====> (Sr,k) if the k>Sv
Will be reviewed
28
Let T(n) be defined by T(1) = 7, and T(n+1) = 3n + T(n), for all integers n ≥ 1. Which
of the following represents the order of growth of T(n) as a function of n?
Θ(n)
Θ(n log n)
Θ(n^2)
Θ(n^2 log n)
Will be reviewed
29
True
False
This content is created by the owner of the form. The data you submit will be sent to the form owner. Microsoft is not responsible
for the privacy or security practices of its customers, including those of this form owner. Never give out your password.
Microsoft Forms | AI-Powered surveys, quizzes and polls Create my own form
Privacy and cookies | Terms of use