Midterms - linear and binary search, indexes, views Flashcards

1
Q

Identification

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

Identification

Is a data structure that 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

Identification

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

Identification

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

A

binary search

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

Identification

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

A

indexes

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

Identification

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

A

SQL views

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

linear search

A

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

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

SQL views

A

is a virtual table created by a DBMS-stored SELECT statement which can combine access to data in multiple tables 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

is a search algorithm that finds a target value in a sorted 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

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

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