CPSC 121 Some Sample Questions for the Final Exam

Similar documents
Chapter 2. Knowledge Representation: Reasoning, Issues, and Acquisition. Teaching Notes

Grade 6 Math Circles Winter February 6/7 Number Theory - Solutions Warm-up! What is special about the following groups of numbers?

HS Exam 1 -- March 9, 2006

Grade 6 Math Circles Winter February 6/7 Number Theory

Chapter 23. Inference About Means. Copyright 2010 Pearson Education, Inc.

Chapter 3 Software Packages to Install How to Set Up Python Eclipse How to Set Up Eclipse... 42

Computational Tree Logic and Model Checking A simple introduction. F. Raimondi

Assignment Question Paper I. 1. What is the external and internal commands and write 5 commands for each with result?

INRODUCTION TO TREEAGE PRO

Intro to Theory of Computation

Unit 1 Exploring and Understanding Data

Scientific Method. How Science is done.

Appendix: Instructions for Treatment Index B (Human Opponents, With Recommendations)

Business Statistics Probability

What is the Scientific Method?

OCW Epidemiology and Biostatistics, 2010 David Tybor, MS, MPH and Kenneth Chui, PhD Tufts University School of Medicine October 27, 2010

SAMPLE. 1. Explain how you would carry out an experiment into the effect playing video games has on alertness.

Chapter 12. The One- Sample

ECE 2300 Digital Logic & Computer Organization

Chapter 8: Estimating with Confidence

Regulation of Human Heart Rate

Characteristics of Life. Problem: How does exercise affect a person's heart rate, breathing rate, and perspiration level? Pre-Lab:

Lecture 20: Chi Square

Thinking about Drinking

CISC453 Winter Probabilistic Reasoning Part B: AIMA3e Ch

Study Guide for the Final Exam

Probabilities and Research. Statistics

56:134 Process Engineering

ECE 2300 Digital Logic & Computer Organization

On the diversity principle and local falsifiability

Supplementary notes for lecture 8: Computational modeling of cognitive development

Artificial Intelligence Programming Probability

USING STATCRUNCH TO CONSTRUCT CONFIDENCE INTERVALS and CALCULATE SAMPLE SIZE

Connectivity in a Bipolar Fuzzy Graph and its Complement

Exam 4 Review Exercises

Bouncing Ball Lab. Name

EVALUATING AND IMPROVING MULTIPLE CHOICE QUESTIONS

Review Questions in Introductory Knowledge... 37

AP Biology: Laboratory 1: Principles of the Scientific Method

Psychology 205, Revelle, Fall 2014 Research Methods in Psychology Mid-Term. Name:

Modeling State Space Search Technique for a Real World Adversarial Problem Solving

MS&E 226: Small Data

Coach Morse - Morse Code Practice Unit

Hoare Logic and Model Checking. LTL and CTL: a perspective. Learning outcomes. Model Checking Lecture 12: Loose ends

Bayesian and Frequentist Approaches

Chapter 8 Estimating with Confidence

Folland et al Chapter 4

INFERENCING STRATEGIES

BOOTSTRAPPING CONFIDENCE LEVELS FOR HYPOTHESES ABOUT REGRESSION MODELS

Medical Electronics Dr. Neil Townsend Michaelmas Term 2001 ( The story so far

Describe what is meant by a placebo Contrast the double-blind procedure with the single-blind procedure Review the structure for organizing a memo

Wason's Cards: What is Wrong?

Variability. After reading this chapter, you should be able to do the following:

Rational or Irrational?

Lecture 2: Learning and Equilibrium Extensive-Form Games

What Science Is and Is Not

Paper Airplanes & Scientific Methods

Some Thoughts on the Principle of Revealed Preference 1

Creative Commons Attribution-NonCommercial-Share Alike License

IEEE 803.af Management clause 33

SAMPLE. 1. Explain how you would carry out an experiment into the effect playing video games has on alertness.

General Instructions:

SOCIOLOGICAL RESEARCH PART I. If you've got the truth you can demonstrate it. Talking doesn't prove it. Robert A. Heinlein

PLC Fundamentals. Module 4: Programming with Ladder Logic. Academic Services Unit PREPARED BY. January 2013

Cleveland State University Department of Electrical and Computer Engineering Control Systems Laboratory. Experiment #3

MIDTERM EXAM. Total 150. Problem Points Grade. STAT 541 Introduction to Biostatistics. Name. Spring 2008 Ismor Fischer

Chapter 13: Introduction to Analysis of Variance

Elementary statistics. Michael Ernst CSE 140 University of Washington

A Computational Theory of Belief Introspection


Two-Way Independent ANOVA

Describe what is meant by a placebo Contrast the double-blind procedure with the single-blind procedure Review the structure for organizing a memo

Supplement 2. Use of Directed Acyclic Graphs (DAGs)

Objectives. Quantifying the quality of hypothesis tests. Type I and II errors. Power of a test. Cautions about significance tests

Fsm exercise: solution

*Karle Laska s Sections: There is NO class Thursday or Friday! Have a great Valentine s Day weekend!

Survival Skills for Researchers. Study Design

Sample Math 71B Final Exam #1. Answer Key

LET S TALK about Sticking with your treatment plan

Section 6: Analysing Relationships Between Variables

How to interpret results of metaanalysis

Readings: Textbook readings: OpenStax - Chapters 1 11 Online readings: Appendix D, E & F Plous Chapters 10, 11, 12 and 14

Plan Recognition through Goal Graph Analysis

Drexel-SDP GK-12 ACTIVITY

Einführung in Agda. Peter Thiemann. Albert-Ludwigs-Universität Freiburg. University of Freiburg, Germany

Assignment Question Paper I

Phenomenal content. PHIL April 15, 2012

Monitor Instructions for Models: CHB-R6 CHB-UV6

Outline. What s inside this paper? My expectation. Software Defect Prediction. Traditional Method. What s inside this paper?

The GCD of m Linear Forms in n Variables Ben Klein

Making Inferences from Experiments

Enzymes & Experimental Design

On the constructive nature of natural language quantifiers. Allan Ramsay School of Computer Science, University of Manchester, Manchester M13 9PL, UK

Name Date. In this lab investigation you will investigate the movement of water through a selectively permeable membrane.

Natural Selection Simulation: Predation and Coloration

Statisticians deal with groups of numbers. They often find it helpful to use

Response to the ASA s statement on p-values: context, process, and purpose

UNIT. Experiments and the Common Cold. Biology. Unit Description. Unit Requirements

Cell division occurs in a series of stages, or phases.

CoreX Equine Pro, Version 1.0 November 2017

Transcription:

CPSC 121 Some Sample Questions for the Final Exam [0] 1. Tautologies and Contradictions: Determine whether the following statements are tautologies (definitely true), contradictions (definitely false), or contingencies (true or false depending on the values/definitions of the variables, domains, and predicates in the expressions). Indicate your answer by circling one of TAUTOLOGY, CONTRADICTION, and CONTINGENCY for each. (Use any technique you wish, truth tables, equivalences, proofs, etc.) Assume all domains have at least one element (are non-empty). [0] a. (q r) F [0] b. (a b) ((a b) c) [0] c. ((q r) ( p q)) [0] d. (p q) (p q) [0] e. x S, P (x) y S, P (y) x /= y [0] f. y S, Q(y) P (y) [0] g. ( x S, y S, x /= y) ( y S, x S, x = y) [0] h. x T, y S, x = y

[0] 2. Quantifier Order and the Challenge Method: Consider the following theorem: x Z, y N, (( z Z, P (x, y, z)) ( w N, Q(x, y, w))) a A, b A, R(x, y, a, b) Imagine using a direct proof approach to prove this theorem (i.e., no contradiction, contrapositive, or other use of logical equivalences to alter the form of the theorem). For each quantifier, indicate whether you will prove the quantifier or assume it. If you are proving it, indicate whether you get to choose the variable s value and, if so, on the basis of which other variables. If you are assuming it, give an example of how you might make use of the assumption.

[0] 3. Direct Proof Approaches: For the following theorem, give a direct proof approach no proof by contradiction or contrapositive, no use of logical equivalences that is as complete as possible. (If there are choices that the person using your approach will need to make, be sure to give as much detail as possible about how they can make those choices.) x1 A, y1 B, P (x1, y1, 0) x2 A, y2 B, z1 A, P (x2, y2, z1) z2 A, Q(z2, z1) P (x2, y2, z2)

[0] 4. Lab Circuits (This is much harder than circuits you expect to see in the exam) : Consider the following circuit: Assume that all of the flip-flops start with the value 0. Assume that Input is a sequence of bits provided by the user and that the clock ticks each time a new bit is available. Ignore the Reset button. This resets the flip-flops to start with 0. [0] a. Give three different input sequences of different lengths that all lead to outputs of 1. [0] b. Give an input and a state for the circuit (i.e., a bit stored by the left flip-flop, a bit stored by the right flip-flop) such that when the clock ticks both flip-flops change their stored values or explain why no such input and state exists. [0] c. Briefly explain in English the meaning of the left flip-flop s value. [0] d. Briefly explain in English the meaning of the right flip-flop s value. [0] e. Briefly explain in English what the circuit does.

[0] 5. Predicate Logic: Much of Facebook s data is described as a graph (not the kind with x- and y-axes), which is made up of nodes and edges that connect nodes together. The edges express relationships between the nodes. We ll reason about a similar graph using the following definitions: N is the set of all nodes T = { friend, located in, likes, owns } is the set of relationship types Edge(a, b, t) means that node a has the relationship t with node b. (Note that a may have the likes relationship with b while b does not have that relationship with a; so, order matters.) Person(a) means node a represents a person Business(a) means node a represents a business Location(a) means node a represents a location For convenience, you may use E for Edge, P for Person, B for Business, and L for Location. Defining Predicates: Define the following predicates in predicate logic in terms of the predicates and sets given above. [0] a. Locale(l) means l is a location and is not itself located in any other location. Locale(l) [0] b. Neighbors(a, b) means nodes a and b are at the same locale. (You may assume every node is in at most one locale, but you should not assume that every node is in exactly one locale.) Neighbors(a, b)

Making Statements: State the following facts in predicate logic. YOU MAY (but do not have to) USE THE EXTRA PREDICATES YOU WERE ASKED TO DEFINE ABOVE. (Assume they are correct.) [0] a. Friendship is symmetric ; that is, two people either have the friend relationship with each other or neither has the friend relationship with the other. [0] b. Every node is a person, business, or location, but not more than one of these. [0] c. A business owner s friends all like the business.

[0] 6. Indirect Proof: Consider the theorem: Every DFA either accepts an infinite number of different inputs or rejects an infinite number of different inputs (or both). Prove the theorem using proof by contradiction (and no other steps preceding the contradiction step).

[0] 7. Designing DFAs: [0] a. Design a Deterministic Finite-State Automaton (DFA) that takes as input a sequence of bits 0 or 1 and accepts exactly those sequences that include at least three bits of which at least two are 0s. (So, for example, 000, 001, 010, 100, 11010, and 1111011001011 should all be accepted. 00, 110, 1110111, 1, 0, and the empty string should all be rejected.) [0] b. Now, write a regular expression that matches the same set of strings.

[0] 8. Direct Proof: Prove a Z +, b Z +, n N, n > b n 2 > an + 1. [0] 9. Working Computer: Our working computer s instructions can come in various lengths. [0] a. Why are some instructions longer than others? Briefly explain, ideally with an example of what might cause an instruction to require more space. [0] b. What part of an instruction indicates how much memory the instruction takes up?

[0] 10. DFA Implementation: Consider the following DFA: [0] a. What state will this be in after processing the string 11011? [0] b. Would this DFA still be legal if we changed state 0 to be an accepting state? [0] c. Would this DFA still be legal if we eliminated the arc from state 5 to itself? [0] d. Implement this DFA as a circuit. [Try some parts of it. At least find out how many flip-flops we need for the states and implement one of the multiplexors for the next state. You don t need to complete the whole circuit.

[0] 11. Induction: For any positive integer n, the n th Fibonacci number Fn is defined to be: [0] a. Prove that the sum of two odd numbers is an even number. (For this and the next two problems: probably not by induction!) [0] b. Prove that the sum of two even numbers is an even number. [0] c. Prove that the sum of an odd number and an even number is an odd number. [0] d. (Good practice question, but much harder than exam questions) Prove by induction that every third Fibonacci number (and no others) is even. That is: Fn is even when n is divisible by 3 and odd otherwise. (Hint: draw your recursive structure from the definition of the Fibonacci numbers, divide into three cases, and use the facts you just proved above.)