Professional Documents
Culture Documents
Computing Notes
Computing Notes
Computing Notes
Table : Set of data organized in columns & rows that may contain a specific number
of columns and rows needed to fit all the data broken into small information.
Key field : Uniquely identifies and finds each record in the database. Known as a
primary key when its a single key field, or a complex key when a set of fields are
used.
Boolean operator : AND, OR, and NOT manage the searching and the results that
show are relevant.
E.g. : If x and y are facts, then ‘First name = Susan AND Age = 50’ will return all 50-
year-old Susans in the database and nothing else
Computing Notes 1
Database query : piece of code that is sent to a database to extract information
from that database. Use query language such as SQL (Structured query language),
which has certain keywords that the database can understand.
SELECT
FROM
WHERE
AND
NOT
OR
LIKE
BETWEEN
Redundant data : when data is stored in a database more than once, which is
duplicated data. Lead to out of control of the database and its best to be avoided.
Computing Notes 2
Verification Validation
uses methods, inspections, reviews, uses methos in testing the data, functional testing,
descision making stuctural testing, etc
check if the software meets the check if the software meets the persons
guidelines expectations and requirements
Check Description
Foreign key : used to link tables in a connected database. A field in one table that is
linked to the primary key / key field in another.
Unit 4 : Searching
Computing Notes 3
4.1 & 4.2 : Linear Search & Implementing linear search
Linear Search : searching method where you start at the beginning of a list and
checking it individually Example:
Start at house 1
WHILE we haven’t found our friend:
1. Open the array and read the search element (also known as the target
element).
2. The search element is compared to the array's first element in the second
step.
3. If both matches are made, the message "Target element is found" appears
and the linear search function is ended.
4. Compare the search element with the following element in the array if not of
them match.
5. Repeat steps 3 and 4 here until the last element of the array is compared
with the search (Target) element.
6. The Linear Search Function will be stopped and the message "Element is
not found" will be shown if the last element in the list does not match.
Computing Notes 4
Binary Search : searching method where the search splits the part of the list being
searched in two with each check. E.g.
List:
Search: 20
0 + 10 / 5 = 5 (midpoint)
20>12
First : 5 + 1 = 6
Mid : 6 + 10 / 2 = 16 / 2 = 8
20>18
Mid : 8 + 1 = 9
You found the target value if the target equals the middle element. Return
the middle element's index to end the function.
Because the array is sorted in ascending order, if the target is smaller than
the middle element, you should remove all elements to its right and only
search along its left side. Until the target is located, repeat this step.
Because the array is sorted in ascending order, if the target is greater than
the middle element, reduce by half the search space by removing all
Computing Notes 5
elements to its left and going on the search on its right side.
Until the target is located, repeat this step.
more efficient for large lists too slow for large lists
Computing Notes 6
Application layer - handles, send and recieve data & information for
formatting and presentation
Transport layer - recieves individual data from the application later, divides it
into packets and passes them to Locan Area Network (LAN)
Network later - contains the drivers and hardware used to transfer data from
souce to destination.
STMP (Simple Mail Transfer Protocol) : communication protocol used for sending
emails over the internet. This protocol is mainly for e-mail clients to deliver
messages to the server and forward these to their final destination.
IMAP (Internet Message Access Protocol) : protocol use to get back emails from
mail server and leave a copy of the emails on the server, allowing multiple clients to
access the same email. Enable users to organize messages into folders, flag
messages for urgency or follow up, save draft messages on the server.
POP (Post Office Protocol) : protocol to download emails from mail serve, when
downloaded, emails are removed from the server and stored locally. Transfers
messages from e-mail server to e-mail client.
Computing Notes 7