Search Header Logo

DS_14-01-Search

Authored by Chun-Jung Lin

others

University

Used 8+ times

DS_14-01-Search
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

循序搜尋法的演算法效率以Big-O 表示為以下何者? 

O(n2)

O(n log (n))

O(n)

O(log(n))

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

二元搜尋法搜尋資料是從哪一個元素開始?

第一個元素 

最後一個元素 

任何一個元素 

中間元素

3.

FILL IN THE BLANK QUESTION

30 sec • 10 pts

給定已排序數列共23個元素,使用二元搜尋(Binary Search) 搜尋某一元素,需要比較幾次?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

下列對雜湊法(Hashing) 與二元搜尋的敘述,何者錯誤? 

雜湊法在沒有發生碰撞(Collision) 情況下搜尋效率比二元搜尋慢。

處理相同的資料下,為了避免碰撞,雜湊法儲存資料所需記憶體空間較二元搜尋多。

雜湊法需要知道雜湊函式才能找到資料所在位置,二元搜尋不需要雜湊函式。

雜湊法不需要事先排序資料,二元搜尋要事先排序資料。

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?