Linear And Binary Search, Indexes, Views Flashcards
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.
SQL Views
Identify:
Is a data structure the contains a copy of some of the data from one or more existing database tables
Indexes
Formula:
Linear Search average search time
Average = (n+1)/2
Formula:
Linear Search Maximum search time
Maximum = n
Formula:
Binary search average search time
Average = log2 (n)-1
Formula:
Formula for middle in binary search
N/2 + 1
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
Linear Search
Identify:
Is a search algorithm that finds a target value in a sorted dataset by repeatedly dividing the search interval half
Binary Search
Identify:
Provides an organizational framework that the DBMS can use to quickly locate the information that needs
Indexes
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
SQL views
Linear Search
Check each element in a dataset one by one until the desired value is found.
SQL Views
SELECT statement which can combine access to data in multiple tables table and even in other views.
Binary Search
Finds value in a sorted dataset dataset by repeatedly dividing the search interval in half.
Indexes
Quickly locate the information that it needs.