Assignment 2: A Ssignment 2
Assignment 2: A Ssignment 2
Assignment 2
1) Describe the steps for performing the two algorithms Selection Sort and Bubble
Sort for the following sequence of numbers (6 marks):
5, 8, 9, 3, 7, 2, 6, 12, 18, 4 ( Mỗi sinh viên một dãy số)
Selection Sort: Swap
25 40 29 91 48 15 38 8 86 72
Swap
8 40 29 91 48 15 38 25 86 72
Swap
8 15 29 91 48 40 38 25 86 72
Swap
8 15 25 91 48 40 38 29 86 72
Swap
8 15 25 29 48 40 38 91 86 72
8 15 25 29 38 40 48 91 86 72
8 15 25 29 38 40 48 91 86 72
8 15 25 29 38 40 48 91 86 72
8 15 25 29 38 40 48 72 86 91
8 15 25 29 38 40 48 72 86 91
8 15 25 29 38 40 48 72 86 91
Bubble Sort:
67 74 15 94 60 23 72 43 10 59
10 67 74 15 94 60 23 72 43 59
10 15 67 74 23 94 60 43 72 59
10 15 23 67 74 43 94 60 59 72
10 15 23 43 67 74 59 94 60 72
10 15 23 43 59 67 74 60 94 72
10 15 23 43 59 60 67 74 72 94
10 15 23 43 59 60 67 72 74 94
10 15 23 43 59 60 67 72 74 94
10 15 23 43 59 60 67 72 74 94
10 15 23 43 59 60 67 72 74 94
c. How many types of artificial intelligence? Give examples for each type.
There are 4 types of Artificial Intelligence:
1. Reactive machines. These are the oldest forms of AI systems that
have extremely limited capability. They emulate the human mind’s
ability to respond to different kinds of stimuli. These machines do
not have memory-based functionality. These machines do not have
memory-based functionality. These machines do not have the ability
to “learn” , could only be used for automatically responding to a
limited set or combination of inputs. They cannot be used to rely on
memory to improve their operations based on the same. An example
is Deep Blue, the IBM chess program that beat Garry Kasparov in
the 1990s. Deep Blue can identify pieces on the chessboard and
make predictions, but because it has no memory, it cannot use past
experiences to inform future ones.
2. Limited memory machines are machines that, in addition to having
the capabilities of purely reactive machines, are also capable of
learning from historical data to make decisions. Nearly all existing
applications that we know of come under this category of AI. All
present-day AI systems, such as those using deep learning, are
trained by large volumes of training data that they store in their
memory to form a reference model for solving future problems.
For instance, an image recognition AI is trained using thousands of
pictures and their labels to teach it to name objects it scans.
Almost all present-day AI applications, from chatbots and virtual
assistants to self-driving vehicles are all driven by limited memory
AI.
3. Theory of mind is a psychology term. When applied to AI, it means
that the system would have the social intelligence to understand
emotions. This type of AI will be able to infer human intentions and
predict behavior, a necessary skill for AI systems to become integral
members of human teams.
For example, Socially competent robotic systems may be used as
companions or socially-assistive robots and have already found
applications in, among others, geriatric care and mental health
settings
4. Self Awareness. This is the final stage of AI development which
currently exists only hypothetically. Self-aware AI, which, self
explanatorily, is an AI that has evolved to be so akin to the human
brain that it has developed self-awareness. This type of AI will not
only be able to understand and evoke emotions in those it interacts
with, but also have emotions, needs, beliefs, and potentially desires
of its own.
At the moment, these types of artificial intelligence only exist in
movies and comic book pages. Self-aware machines do not exist.
For example, WALL-E (in movie WALL-E) – the only robot left
behind on earth begins to have a small error in the system:
developing human character. Very inquisitive, extremely curious and
a bit lonely. Every day, the devoted robot works alone.