Professional Documents
Culture Documents
An ER diagram for the movie rental database (A customer rents the movies)
Database Management Systems
vDatabase: A structured set of data
vDatabase management system
(DBMS): A combination
of software and data made up of
qphysical database: collection of files
that contain
the data
qdatabase engine: a software that
supports access
to and modification of the database
contents
qdatabase schema: a specification of
the logical structure of the data stored
in the database
Relational-Model DBMS
vRelational model: A database
model in which data and the
relationships among them are Field
organized into tables
vTable: A collection of database
records
Record
vRecord (or object, or entity):
A collection of related fields that
make up a single database entry
(rows)
vField (or attribute): A single
value in a database record
(columns)
vEach movie record has: a
MovieId, a Title, a Genre, and
a Rating
vKey field: One or more fields
of a database record that
uniquely identifies it among all
other records in the table, e.g.,
MovieId.
vSchema: Movie
(MovieId:key, Title, Genre,
Rating)
Movie table
Customers table
Rents table
Structured Query Language (SQL)
vA comprehensive relational database language for data management and
queries
vQueries: select attribute-list from table-list where condition
vE.g.:
qselect Title from Movie where Rating = ‘PG’
qselect Name, Address from Customer
qselect * from Movie where Genre like ‘%action%’
SQL Commands (1/4)
SQL Commands (2/4)
vCREATE: used to create a new database object. It can be used to create a new
table, view, function, stored procedure, etc. in the database.
CREATE TABLE Table_Name ( CREATE TABLE Employee (
Column_Name1 Data_Type (Size), Id INT PRIMARY KEY,
Column_Name2 Data_Type (Size), Name VARCHAR(50),
Column_NameN Data_Type (Size) Salary DECIMAL(18, 2)
); );
vINSERT: used to add a new record in the table.
INSERT INTO Table_Name INSERT INTO Employee
(Column_Name1, Column_Name2, ( Id, Name, Salary)
ColumnN) VALUES (102, 'Nguyen Van
VALUES (Value1, Value2, ValueN); A', 1000000);
SQL Commands (3/4)
vSELECT: used to fetch the records from the database. It can be used to access
the data from the database based on the condition using the ‘where’ clause.
-- To show all the records
SELECT expressions FROM
Table_Name vSELECT * FROM Employee;
WHERE conditions; -- To show the records based
on condition
vSELECT * FROM Employee
WHERE ID=101;
Hand pose
Application:
- use hand to signal capturing images,
- sign language recognition
- computer games,
- control computer
32
Expert Systems
vKnowledge-based system: Software that uses a specific set of information
vExpert system: A software system based on the knowledge of human experts.
E.g., software that helps doctors diagnose some diseases.
Natural Language Processing (NLP)
vVoice recognition Using a computer to recognize the words spoken by a human
vNatural language comprehension: Using a computer to apply a meaningful
interpretation to human communication
vVoice synthesis: Using a computer to create the sound of human speech
Eliza
https://www.youtube.com/watch?v=RMK9AphfLco
Quiz
vCompare and contrast between supervised learning, unsupervised learning and
reinforcement learning? Please give an example for each type of learning.
Reinforcement learning
vCartpole: https://www.youtube.com/watch?v=5Q14EjnOJZc
vAtari game: https://www.youtube.com/watch?v=V1eYniJ0Rnk
Cart-pole balancing
vhttps://www.youtube.com/watch?v=5Q14EjnOJZc
Simulation, Graphics, Gaming,
and Other Applications
Simulation
vSimulation Developing a model of a complex system and
experimenting with the model to observe the results
vModel: An abstraction of a real system; a representation of objects
within a system and the rules that govern the behavior of the objects
qContinuous Simulation: continuous time, differential equations represents
interactions between features and changes of features, e.g., weather models
such as Weather Forecasting, Hurricane Tracking
qDiscrete-Event Simulation: discrete events. E.g., NS-3, OPNET, OMNET
Computer Graphics
v Create pictures and films using computers
v Some apps: Graphical user interfase, 3D modelling, vector graphic
v Huge impacts on animation, movies, advertising, video games, and graphic
design.
Computer Graphics
https://en.wikipedia.org/wiki/Game_engine
Game Design and Development
vGame Programming
qJava is typically used for Android games
qObjective C for IOS mobile game
qC# JavaScript, and Lua
qSome pecific language of particular engine: Epic Game’s Unreal Script for the
Unreal engine and Unity 3D