CP468 Midterm

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:07 AM on 6/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

Four Ways to Define AI

Acting humanly: Turing Test
Thinking humanly: cognitive science
Thinking rationally: laws of thought
Acting rationally: (AI) rational = doing the right thing

2
New cards

Rule-based systems

Explicit IF-THEN logic

ex: If email contains “lottery” → spam

3
New cards

Learning-based systems

Patterns extracted automatically from data

data → model → prediction

ex: traditional LLM

4
New cards

Pros and Cons of Learning-based vs rules based

Learning-based:
Pro: Flexible and powerful
Cons: Less transparent, hard to explain why it made decision

Rules-based:
Pro: Fast, transparent, predictable
Con: breaks down in reality, no one can write enough rules

5
New cards

3-Types of Learning

Supervised
Unsupervised
Reinforcement

6
New cards

Supervised Learning

Learns from labelled data. Inputs paired with correct outputs. The model maps one to the other.

ex: Search ranking, Spam vs not-spam, fraud detection

7
New cards

Unsupervised Learning

Learns without labels

ex: Clustering

8
New cards

Reinforcement Learning

Takes actions in environment, receive rewards or penalties, improve over time

9
New cards

Discriminative vs Generative

Discriminative: Given this input, which class does it belong to? (ex: Logistic Regression)
Generative: Given this distribution, produce new examples that look like real data (ChatGPT)

10
New cards

AI Problem in 5 Parts SATGC

State: What does the world look like right now? (Position)
Actions: What can’t the agent do? (Move, Buy)
Transition: What happens after an action? (New state + action)
Goal: What are we trying to achieve? (Checkmate)
Cost: What do we want to minimize? (Time, money)

11
New cards

Data is the ___ of AI

fuel

12
New cards

Data ____ matters more than ________

Data quality matters more than model complexity

13
New cards

More data =

Generally improves performance up to a point

14
New cards

Biased Data =

Model learns whatever is in the training set

15
New cards

Learning vs Memorization

Good AI: generalizes, learns patterns
Bad AI: memorizes training data, fails on new examples

16
New cards

Evaluation for AI

Classification, Regression, Reinforcement Learning

Classification(predict category): Accuracy
Regression(predict number): Error
Reinforcement Learning(maximize goal): Reward

17
New cards

Limitations/Risks of AI (BPHO)

Bias: model learns inequities baked into training data
Privacy: Training data can leak into output
Hallucinations: Confidently incorrect outputs
Over-reliance: trusting AI more than it deserves

18
New cards

Agent Definition

An agent perceives it’s environment through sensors and acts on it through actuators

19
New cards

Agents include…

Humans
Robots
Softbots (API calls in, API calls out)
Thermostats (Temp sensor, turn on heater)

20
New cards

Agent Function vs Agent Program

Agent Function(abstract): Maps a percept history to an action
Agent Program(concrete): Code that runs on physical architecture to produce agent behaviour

21
New cards

Percepts

pieces of information an AI agent receives from its environment through sensors

ex: [location, contents] → [A, Dirty] (for vacuum)

22
New cards

Rationality

Rational agent picks option that is expected to maximize it’s performance

Not: Omniscience, clairvoyance, success

Is: Exploration, learning, autonomy

23
New cards

PEAS: how to specify task enviorment

P: performance (how do we score success?)
E: environment (what world does agent live in?)
A: actuators (What can the agent do to/in world?)
S: sensors (What can the agent perceive?)

24
New cards

PEAS for Shopping Agent

Peformance: Price, Quality, Good for User?
Environment: Current and future websites, vendors, the user
Actuators: render results to user, follow URLs, place orders
Sensors: HTML pages, user clicks and queries

25
New cards

Todays LLM agents are a type of…

Softbot

26
New cards

Softbot

An AI genet that mimics human tasks, acts on users behalf, or serves as digital bridge between different computer systems

Automation tools and industrial robotics software

27
New cards

Fully vs Partially Observable (7-Dimensions Environment)

Can the agent’s sensors see the complete state at each step?

28
New cards

Deterministic vs Stochastic (7-Dimensions Environment)

Is the next state fully determined by the current state and action?

29
New cards

Episodic vs Sequential (7-Dimensions Environment)

Do current decisions affect later ones?

30
New cards

Static vs Dynamic (7-Dimensions Environment)

Does the environment change while the agent is deliberating?

31
New cards

Discrete vs Continuous (7-Dimensions Environment)

Are time, percepts, and actions countable or smoothly varying

32
New cards

Single-agent vs multi-agent (7-Dimensions Environment)

Are there other agents whose behaviour matters? Cooperative or adversarial?

33
New cards

Known vs Unknown (7-Dimensions Environment)

Does the agent know the rules of the environment in advance

34
New cards

Environment type drives architecture choice. Use the ______ agent the world allows.

Environment type drives architecture choice. Use the simplest agent the world allows

35
New cards

5 Agent Architectures, in order (SMGUL) (STAR)

  1. Simple Reflex Agent (acts on percept only)

  2. Model-based reflex agent (maintains internal state of the world)

  3. Goal-based agent (reasons about how to reach a goal)

  4. Utility-based agent (Maximizes a continuous utility, not just goals)

  5. Learning Agent (Any of the above + improves from experience)

36
New cards

Simple-Reflex Agent & Pros Cons

Match the current percept against a set of condition-action rules. Whichever rule fires first wins.

Pros: Cheap, fast, predictable
Cons: Has no memory, may loop forever

37
New cards

Model-based reflex agent & Two Ingredients

Keeps an internal model of the world to handle parts the sensors don’t currently see.

Two Ingredients:
How the world evolves (Cars move when I look away)
What my actions do (If I turn wheel left, my heading changes)

38
New cards

Goal-based agent

Considers possible futures “What will happen if I do A?” then chooses the action whose predicted outcome is closest to the goal

39
New cards

Utility-based agent

Maps a state to a real number, “how happy” the agent would be there. Choose the action whose expected utility is highest

40
New cards

Goals-based vs Utility-based agent

Goals → binary (reached or not)
Utility → a continuous degree of preference

41
New cards

Learning Agent and 4 components (PCLP)

Performance element → selects actions
Critic → compares behaviour to a fixed performance standard
Learning element → Updates the performance element from the critics feedback
Problem generator → suggests exploratory actions to discover new things

42
New cards

LLM Agent Anatomy (STAR)

Agent = LLM + Memory + Planning + Tool Use

43
New cards

Short-Term vs Long-Term memory LLM

Short-Term: Context Window
Long-Term: Vector DB, Files, Summaries

44
New cards

Agent =

Agent = percieve → think → act

45
New cards

Problem Solving Agent Implementation:
On holiday in Romania; currently in Arad. Flight leaves
tomorrow from Bucharest

Goal: be in Bucharest
Problem:
- States: various cities
- Actions: drive between cities
Solution: sequence of cities

46
New cards

Problem-solving process

  1. Goal formula

  2. Problem: state and actions

  3. Search: simulate actions until reaches goal (Solution)

  4. Execution

47
New cards

State

description of the world at a particular moment in time

48
New cards

Action

Something the agent can do that causes a transition from one state to another

49
New cards

Transition Model

Agents internal representation of how the world works, how actions change states

50
New cards

(Domain) Model

Complete abstract description of the problem world: states, actions, transitions, goal, coast

51
New cards

Optimal Solution

Lowest path cost among all solutions

52
New cards

Domain Model Abstraction

Ignore irrelevant states. Replacing real-world complexity with simpler representations

ex: Map of cities → cities on graph with distances between them

53
New cards

Vacuum World (States, Actions, Goal Test, Path Cost)

states: integer dirt and robot locations
actions: left, right, suck, NoOp
goal test: no dirt
Path cost: 1 per action

54
New cards

Tree Search Algo

knowt flashcard image
55
New cards

States vs Nodes

State: representation of a physical configuration
Node: data structure constituting part of a search tree (parent, children, depth, path cost g(x))

56
New cards

Strategies are evaluated by the following dimensions (CTSO)

Completeness: Does it always find a solution if one exists
Time complexitity
Space complexity
Optimality