Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Assume the following code F(int A[], int n, int item) int pos=(sqrt(n)+n*n)%n A[pos]=item The time complexity for this code is Select one: a.O(1) b.O(n

1) Assume the following code

F(int A[], int n, int item)

int pos=(sqrt(n)+n*n)%n

A[pos]=item

The time complexity for this code is

Select one:

a.O(1)

b.O(n2)

c.O(n)

d.O(sqrt(n))

------------------

2) After generating the AVL tree from the list: 7, 10, 15, 25, 22, 13, 11, 5, 9, 3, 6, 1

The root is

a)15

b)10

c)13

d)7

----------------------------

3) Connected graph has a path that cotains every node in the graph

Select one:

a)False

b)True

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions