Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Cisc cmpe422 835 final exam, Exams of Machine Learning

exam solution for previous year

Typology: Exams

2017/2018

Uploaded on 11/04/2021

jenny1212
jenny1212 🇯🇵

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Question 1
Var = {V0}
Block = {B0, B1}
contains = {}
declares = {B0->V0, B1->V0}
uses = {}
Question 2
S1: all b:Block | b.declare in b.uses
S2: all b:Block | all v:b.uses | v in (*contains.b).declares
S2: all b:Block | b.uses in (*contains.b).declares
S3: all v:Var | lone b:Block | v in b.declares
S4: one b:Block | all b1:Block | b1!=b => b !in b1.contains
S4: one b:Block | no b1:Block-b | b !in b1.contains
Question 3
S1: {b:Block | some b':b.contains | no b'.uses}
S2: (*contains.b).declares
S3: {b:Block | all b':b.contains | one v:Var | b'.uses = v}
S4: {b:Block | #{b':b.contains | no b'.declares}=2}
Question 4
A
Question 5
true // because of B2
Question 6
true
Question 7
{A1->A1} // other correct answers: {(A1,A1)} and A1->A1
Question 8
false // because of A0.r = {B0,B1,B2}
Question 9
{A1} // other correct answers: A1
Question 10
{(s1,t0)} // other correct answers: {s1->t0} and s1->t0
Question 11
{(t0,s1)} // other correct answers: {t0->s1} and t0->s1
Question 12
{(s0,t0)} // other correct answers: {s0->t0} and s0->t0
Question 13
{s0} // other correct answers: s0
Question 14
{s1} // other correct answers: s1
pf2

Partial preview of the text

Download Cisc cmpe422 835 final exam and more Exams Machine Learning in PDF only on Docsity!

Question 1 Var = {V0} Block = {B0, B1} contains = {} declares = {B0->V0, B1->V0} uses = {}

Question 2 S1: all b:Block | b.declare in b.uses S2: all b:Block | all v:b.uses | v in (contains.b).declares S2: all b:Block | b.uses in (contains.b).declares S3: all v:Var | lone b:Block | v in b.declares S4: one b:Block | all b1:Block | b1!=b => b !in b1.contains S4: one b:Block | no b1:Block-b | b !in b1.contains

Question 3 S1: {b:Block | some b':b.contains | no b'.uses} S2: (*contains.b).declares S3: {b:Block | all b':b.contains | one v:Var | b'.uses = v} S4: {b:Block | #{b':b.contains | no b'.declares}=2}

Question 4 A

Question 5 true // because of B

Question 6 true

Question 7 {A1->A1} // other correct answers: {(A1,A1)} and A1->A

Question 8 false // because of A0.r = {B0,B1,B2}

Question 9 {A1} // other correct answers: A

Question 10 {(s1,t0)} // other correct answers: {s1->t0} and s1->t

Question 11 {(t0,s1)} // other correct answers: {t0->s1} and t0->s

Question 12 {(s0,t0)} // other correct answers: {s0->t0} and s0->t

Question 13 {s0} // other correct answers: s

Question 14 {s1} // other correct answers: s

Question 15 {s0,s1}

Question 16 {(s0,s2)} // other correct answers: {s0->s2}

Question 17 The following statements are true:

  • The specification is satisfiable in scope 2.
  • The specification is satisfiable in scope 3.
  • The specification has exactly one satisfying instance (up to isomorphism).