Linear And Binary Search, Indexes, Views Flashcards

1
Q

Identify

Are virtual tables created from a stored query. Allows you to access and manipulate data from one or more tables without rewriting the query each time.

A

SQL Views

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Identify:

Is a data structure the contains a copy of some of the data from one or more existing database tables

A

Indexes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Formula:

Linear Search average search time

A

Average = (n+1)/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Formula:

Linear Search Maximum search time

A

Maximum = n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Formula:

Binary search average search time

A

Average = log2 (n)-1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Formula:

Formula for middle in binary search

A

N/2 + 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Identify:

Simple search algorithm that checks each element in a dataset one by one until the desired value is found or the end of the dataset is reached

A

Linear Search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Identify:

Is a search algorithm that finds a target value in a sorted dataset by repeatedly dividing the search interval half

A

Binary Search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Identify:

Provides an organizational framework that the DBMS can use to quickly locate the information that needs

A

Indexes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Identify:

Is a virtual tables created created by a DBMS-stored SELECT statement which can combine access to data in multiple tables and even in other ways

A

SQL views

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Linear Search

A

Check each element in a dataset one by one until the desired value is found.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

SQL Views

A

SELECT statement which can combine access to data in multiple tables table and even in other views.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Binary Search

A

Finds value in a sorted dataset dataset by repeatedly dividing the search interval in half.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Indexes

A

Quickly locate the information that it needs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly