2025-04-09 13:22:21
This commit is contained in:
parent
b321ce79f8
commit
1850ff554a
@ -1 +1 @@
|
||||
{"algorithm":{"algorithm":{"currentFile":{"count":1,"lastUpdated":1736360369637}}},"computing":{"computing":{"currentFile":{"count":2,"lastUpdated":1736427522780}}},"tasks":{"tasks":{"currentFile":{"count":1,"lastUpdated":1736428160890}}},"parallelization":{"parallelization":{"currentFile":{"count":1,"lastUpdated":1736428239757}}},"Implicit":{"Implicit":{"currentFile":{"count":1,"lastUpdated":1736429811730}}},"Semi-implicit":{"Semi-implicit":{"currentFile":{"count":1,"lastUpdated":1736429857427}}},"Agent":{"Agent":{"currentFile":{"count":1,"lastUpdated":1736527234430}}},"Agents":{"Agents":{"currentFile":{"count":3,"lastUpdated":1736528265726}}},"actions":{"actions":{"currentFile":{"count":1,"lastUpdated":1736527553391}}},"successful":{"successful":{"currentFile":{"count":1,"lastUpdated":1736527687166}}},"agents":{"agents":{"currentFile":{"count":3,"lastUpdated":1736529446424}}},"environment":{"environment":{"currentFile":{"count":4,"lastUpdated":1736962288019}}},"actuators":{"actuators":{"currentFile":{"count":1,"lastUpdated":1736528278631}}},"Sensors":{"Sensors":{"currentFile":{"count":1,"lastUpdated":1736528280975}}},"state":{"state":{"currentFile":{"count":1,"lastUpdated":1736529437831}}},"types":{"types":{"currentFile":{"count":1,"lastUpdated":1736529458373}}},"Operatiosn":{"Operatiosn":{"currentFile":{"count":1,"lastUpdated":1736530551849}}},"Algorithms":{"Algorithms":{"currentFile":{"count":1,"lastUpdated":1736792441945}}},"Problem":{"Problem":{"currentFile":{"count":2,"lastUpdated":1736963119655}}},"parallel":{"parallel":{"currentFile":{"count":2,"lastUpdated":1736858881146}}},"processing":{"processing":{"currentFile":{"count":1,"lastUpdated":1736858379041}}},"resources":{"resources":{"currentFile":{"count":1,"lastUpdated":1736858873851}}},"Reduce":{"Reduce":{"currentFile":{"count":1,"lastUpdated":1736859169038}}},"minimized":{"minimized":{"currentFile":{"count":1,"lastUpdated":1736860208884}}},"oriented":{"oriented":{"currentFile":{"count":1,"lastUpdated":1736860250593}}},"Memory":{"Memory":{"currentFile":{"count":1,"lastUpdated":1736860492193}}},"nodes":{"nodes":{"currentFile":{"count":1,"lastUpdated":1736861731850}}},"benefit":{"benefit":{"currentFile":{"count":1,"lastUpdated":1736963283168}}},"weight":{"weight":{"currentFile":{"count":1,"lastUpdated":1736963351487}}},"Science":{"Science":{"currentFile":{"count":3,"lastUpdated":1736978641182}}},"philosophy":{"philosophy":{"currentFile":{"count":1,"lastUpdated":1736978932932}}},"scientists":{"scientists":{"currentFile":{"count":1,"lastUpdated":1736979775741}}},"knowledge":{"knowledge":{"currentFile":{"count":1,"lastUpdated":1736982926940}}},"Design":{"Design":{"currentFile":{"count":1,"lastUpdated":1737031267035}}},"Model":{"Model":{"currentFile":{"count":1,"lastUpdated":1737464038874}}},"customers":{"customers":{"currentFile":{"count":1,"lastUpdated":1737553912552}}},"Greedy":{"Greedy":{"currentFile":{"count":1,"lastUpdated":1737567102192}}},"objects":{"objects":{"currentFile":{"count":1,"lastUpdated":1737652655646}}},"theory":{"theory":{"currentFile":{"count":1,"lastUpdated":1738188719481}}},"Capitalism":{"Capitalism":{"currentFile":{"count":1,"lastUpdated":1738189280214}}},"european":{"european":{"currentFile":{"count":1,"lastUpdated":1738189457517}}},"Revolution":{"Revolution":{"currentFile":{"count":1,"lastUpdated":1738791464660}}},"product":{"product":{"currentFile":{"count":1,"lastUpdated":1738791524846}}}}
|
||||
{"Important":{"Important":{"currentFile":{"count":1,"lastUpdated":1744212756873}}},"Questions":{"Questions":{"currentFile":{"count":1,"lastUpdated":1744212758410}}},"answers":{"answers":{"currentFile":{"count":1,"lastUpdated":1744212929208}}},"probabilities":{"probabilities":{"currentFile":{"count":1,"lastUpdated":1744215350670}}},"decision":{"decision":{"currentFile":{"count":1,"lastUpdated":1744215513253}}}}
|
9
.obsidian/workspace.json
vendored
9
.obsidian/workspace.json
vendored
@ -13,12 +13,12 @@
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "UNB/Year 5/Semester 2/HIST3925/Lecture Notes.md",
|
||||
"file": "UNB/Year 5/Semester 2/CS4725/Final Review.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "Lecture Notes"
|
||||
"title": "Final Review"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -168,10 +168,11 @@
|
||||
},
|
||||
"active": "a4868a0d0ec2cb3a",
|
||||
"lastOpenFiles": [
|
||||
"UNB/Year 5/Semester 2/CS4613/Lecture Notes.md",
|
||||
"UNB/Year 5/Semester 2/CS4725/Lecture Notes.md",
|
||||
"UNB/Year 5/Semester 2/HIST3925/Breakout Questions.md",
|
||||
"UNB/Year 5/Semester 2/CS4725/Final Review.md",
|
||||
"UNB/Year 5/Semester 2/HIST3925/Lecture Notes.md",
|
||||
"UNB/Year 5/Semester 2/CS4613/Lecture Notes.md",
|
||||
"UNB/Year 5/Semester 2/HIST3925/Breakout Questions.md",
|
||||
"UNB/Year 5/Semester 2/HIST3925/Guest Lecture Notes.md",
|
||||
"UNB/Year 5/Semester 2/HIST3925/Presentation Notes.md",
|
||||
"UNB/Year 5/Semester 2/CS3383/Lecture Notes.md",
|
||||
|
102
UNB/Year 5/Semester 2/CS4725/Final Review.md
Normal file
102
UNB/Year 5/Semester 2/CS4725/Final Review.md
Normal file
@ -0,0 +1,102 @@
|
||||
# Instructions:
|
||||
12 FRQ, written answers
|
||||
3 MCQ, multiple choice
|
||||
1 Matching question, algorithms (role of algorithms)
|
||||
15 total questions (?)
|
||||
|
||||
1 A4 size double sided hand written notes allowed (Important!!!)
|
||||
2 hour exam
|
||||
Partial marks allowed for partially correct answers
|
||||
Bring a calculator (Important!!!)
|
||||
# Part 1 Important Questions
|
||||
Horn form for logic?
|
||||
Why are these conditions not solvable without a truth table?
|
||||
|
||||
# Part 2 Important Questions
|
||||
## 1
|
||||
Arithmetic assertions can be written in first order logic with the predicate symbol <, the function symbols + and x, and the constant symbols 0 and 1. Additional predicates can also be defined with bi-conditionals
|
||||
a) Represent the property "x is and even number"
|
||||
Ax Even(x) <=> Ey x=y+y
|
||||
b) Represent the property "x is prime"
|
||||
Ax Prime(x) <=> Ey,z x=y * z => y = 1 V z = 1
|
||||
c) Goldbach's conjecture is the conjecture (unproven as of yet) that "every even number is equal to the sum of two primes". Represent this conjecture as a logical sentence.
|
||||
Ax Even(x)=> Ey,z Prime(y) /\ Prime(z) /\ x=y+z
|
||||
|
||||
# 2
|
||||
Find the values for the probabilities a and b in joint probability table below so that the binary variables X and Y are independent
|
||||
|
||||
| X | Y | P(X, Y) |
|
||||
| --- | --- | ------- |
|
||||
| t | t | 3/5 |
|
||||
| t | f | 1/5 |
|
||||
| f | t | a |
|
||||
| f | f | b |
|
||||
Due to probability being max 1, we know that a + b must be 1/5
|
||||
P(Yt)/P(Yf) = a/b = 3
|
||||
b = 1/20
|
||||
a = 3/20
|
||||
|
||||
# 3
|
||||
idk where R comes from, look into slides about bayes theorem
|
||||
Show the three forms of independence in Equation (12.11) are equivalent
|
||||
P(a|b) = P(a) or P(b|a) = P(b) or P(a /\ b) = P(a) * P(b) / R(?)
|
||||
|
||||
First two are logically the same, just inverted
|
||||
|
||||
From bayes theorem
|
||||
P(a | b) * P(b) = P(a) * P(b) / R(?)
|
||||
|
||||
P(a /\ b) = P(a | b) * P(b)
|
||||
|
||||
# 4
|
||||
Consider the following propability distrobutions:
|
||||
|
||||
| A | P(A) |
|
||||
| --- | ---- |
|
||||
| t | 0.8 |
|
||||
| f | 0.2 |
|
||||
|
||||
| A | B | P(B\|A) |
|
||||
| --- | --- | ------- |
|
||||
| t | t | 0.9 |
|
||||
| t | f | 0.1 |
|
||||
| f | t | 0.6 |
|
||||
| f | f | 0.4 |
|
||||
|
||||
| B | C | P(C\|B) |
|
||||
| --- | --- | ------- |
|
||||
| t | t | 0.8 |
|
||||
| t | f | 0.2 |
|
||||
| f | t | 0.8 |
|
||||
| f | f | 0.2 |
|
||||
Given these tables and no other assumptions, calculate the following probabilities.
|
||||
a. P(a, ~b)
|
||||
= P(a) * P(~b|a)
|
||||
= 0.8 * 0.1
|
||||
= 0.08
|
||||
b. P(b)
|
||||
= P(bt|a) * P(a) + P(bt | ~a) * P(~a)
|
||||
= 0.9 * 0.8 + 0.6 * 0.2
|
||||
= 0.84
|
||||
# 5
|
||||
Let A and B be Boolean Random variables. You are given the following probabilities
|
||||
P(A=true) = 0.5
|
||||
P(B=true |A=true) = 1
|
||||
P(B=true) = 0.75
|
||||
|
||||
What is P(B=true|A=false)?
|
||||
|
||||
# 6
|
||||
Consider the XOR function of three binary input attributes, which produces the value 1 if and only if an odd number of the three input attributes has value 1.
|
||||
|
||||
Draw a minimal sized decision tree for the three input XOR function.
|
||||
|
||||
Three layer decision three, A > B > C. Output of tree would be
|
||||
0 1 1 0 1 0 0 1 if on the left of the decision is always 0 and 1 is right
|
||||
|
||||
# 7
|
||||
Consider the problem of separating N data points into +ve and -ve examples using a linear separator. Clearly this can always be done for N=2 points on a line of dimension d=1, regardless of how many points are labeled or where they are located (unless the points are in the same place)
|
||||
|
||||
a) Show that it can always be done for N=3 points on a plane of dimension d=2 unless they are co-linear.
|
||||
|
||||
b) Show that it cannot (or can we?) always be done for N=4 points on a plane of dimension d=2
|
Loading…
x
Reference in New Issue
Block a user