Covers: Midterm Review

Size: px
Start display at page:

Download "Covers: Midterm Review"

Transcription

1 Midterm Review 1. These slides and review points found at 2. ring a photo I card: Rocket ard, river's License overs: 4.1 Graphs + uler Paths 4.2 Traveling Salesman + Hamiltonian Paths 2.1 Sets 2.2 Set Theory 2.3 Set Operations 6.1 Number Theory 11.1 Voting Methods 11.2 efects of Voting Methods 11.3 Weighted Voting Systems 2 1 Know the basic vocabulary of the sections. The test will be multiple choice. The test will be like the online HW rather than the lab assignments. Graphs are made up of 2 parts: v and e graph is connected if 4 3 path is a sequence of adjoined edges along a graph n uler graph visits every once. 5 F 6

2 Mnemonic: uler Graph visits every dge exactly once. graph can be traversed if there is an uler path. There is an uler path if 0 or 2 verticies are odd. 7 8 Pop quiz!!! 1) Find an odd vertex. ulerizing is the process of duplicating edges until all verticies are even. odd 2) Is there an uler path? 9 odd 10 Two solutions. Which is more optimal? complete graph has /07/13 12

3 complete graph has every vertex connected to every other vertex. Hamiltonian path goes through each once. 10/07/ Hamiltonian path goes through each vertex once. So a Hamiltonian path might miss edges. circuit (uler or Hamiltonian) is a path that starts and ends at the same vertex. n uler path goes through each edge once. It might use the same vertex multiple times /07/13 16 The weight of an edge is a number assigned to the edge. (Think distance between cities.) graph is a weighted graph if all of its edges have weights What is the weight of a), b), c), - no edge, no weight 17 Traveling Salesman Problem - visit every city (vertex) with least distance (weight) - so least weight Hamiltonian path

4 Pop quiz!!! Hamiltonian Paths visit each exactly once. Representing Sets Set-builder notation: 1) ircuit 2) dge 3) omplete 4) Vertex 5) None of the above 10/07/ Pearson ducation, Inc. ll rights reserved. Section 2.1, Slide { 1, 2, 3, 4, 10 } { x x is positive and even } { University Hall, Snyder Memorial, Gillham Hall, Field House, Rocket Hall, Palmer,... } set with no entries is known as the empty set. It can also be written as The empty set is a subset of every set. It is not an element of every set, but here is an example: = { ob, 12345,, pumpkins } n() = the number of elements in set = { ob, 12345,, pumpkins } n() = = { a, b, c, x, y, z } n() = = { x x is a day of the week } n() = 10/07/13 23 means "is an element of" means "is not an element of" Pop Quiz!!!! = { 1, 2, 3, 4, 5} = { {1}, {2}, {3}, {4}, {5} } 1) 5 is an element of 2) {5} is an element of 3) {5} is a subset of 10/07/13 24

5 Venn iagram. 26 U

6 Order of Operations ( ) parenthesis always done first. ' set complement next. U,, union, intersection, difference last Methods of solving - Venn iagrams - Shorthand ' = U ' = - Longhand U ' = U = { 1, 2, 3, 4, 5, 6 } = { 1, 2, 3, 4 } = { 2, 4, 6 } = { 3, 4, 5 } Pop Quiz!!! How many elements in? Find ( U ) ' 33 a b means a divides b If a b then b = a c where c is some other number. This is a factor of b and 1000 / 20 = 50, so 1000 = 20 x 50 10/07/13 34 number who's factors are only 1 and itself is a prime number. 2, 3, 5, 7, 11, 13, 23, 29, 31, 37, etc factor tree splits a number into 2 factors at each step. xample: 420 You can use a Sieve of ratosthenes to find them. 10/07/13 35 The prime factorization is the collection of all the primes. 10/07/13 36

7 G = greatest common divisor = use lowest power of factors LM = least common multiple = use largest power of factors /07/ /07/13 38 There are different voting methods when you have more than 2 candidates. 1) Plurality 2) orda ount 3) Plurality with limination 4) Pairwise omparison 10/07/13 39 Plurality Person with most votes wins. orda ount dd up points for each candidate. The one with the most points wins. On a ballot, a last place vote gets 1 point, second to last place vote gets 2 points, etc. 10/07/13 40 xample 3 candidates, 5 voters. Voter 1: Voter 2: Voter 3: Voter 4: Voter 5: Plurality with limination Remove candidate with least 1 st place votes. Retally ballots. Repeat until 1 person remains. This person is the winner. 10/07/ /07/13 42

8 xample 3 candidates, 5 voters. Voter 1: Voter 2: Voter 3: Voter 4: Voter 5: Pairwise omparison ompare every pair of candidates. If one wins, they get 1 point, the other 0. If they tie, they both get ½ points. The candidate with the most points wins. 10/07/ /07/13 44 xample 3 candidates, 5 voters. Voter 1: Voter 2: Voter 3: Voter 4: Voter 5: Fairness onditions and riteria for analyzing defects. 10/07/ /07/13 46 Pop quiz!!!!! Which of these is not a voting method? 1) orda ount 2) Plurality with lmination 3) Plurality 4) Majority riterion 5) Pairwise omparison No current voting method satisfies all of these well-meaning conditions and criteria 10/07/ /07/13 48

9 ny voters that vote the same way is called a coalition. xample: winning coalition is a coalition that can always pass an issue / meets the quota. [ 10: 2, 2, 2, 4, 4 ] xample: Find a winning coalition of voters. [ 10: 2, 2, 4, 4, 4 ] Who is critical to get 8 votes? 51 {} 5 {} 3 {} 4 {,} 8 winning {,} 9 winning {,} 7 {,,} 12 winning 52 ompute the anzhaf Power Index for,,. critical {} 5 {} 3 {} 4 {,} 8 winning, {,} 9 winning, {,} 7 {,,} 12 winning ompute the anzhaf Power Index for,,. critical {} 5 {} 3 {} 4 {,} 8 winning, (Note: total {,} 9 winning, critical voters {,} 7 is 5 = 3+1+1) {,,} 12 winning critical 3 times, critical 1 time, critical 1 time anzhaf Power Index : 3/(3+1+1) : 1/(3+1+1) : 1/(3+1+1)

A C B D D B C A C B A D

A C B D D B C A C B A D Sample Exam 1 Name SOLUTIONS T Name e sure to use a #2 pencil. alculators are allowed, but cell phones or palm pilots are NOT acceptable. Please turn cell phones off. MULTIPLE HOIE. hoose the one alternative

More information

Traveling Salesman Problem (TSP) - Visit every city and then go home.

Traveling Salesman Problem (TSP) - Visit every city and then go home. Traveling Salesman Problem (TSP) - Visit every city and then go home. Seattle Detroit Boston Toledo Cleveland L. A. Columbus New Orleans Atlanta Orlando A Hamiltonian Path is a path that goes through each

More information

MATH : FINAL EXAM INFO/LOGISTICS/ADVICE

MATH : FINAL EXAM INFO/LOGISTICS/ADVICE INFO: MATH 1300-01: FINAL EXAM INFO/LOGISTICS/ADVICE WHEN: Thursday (08/06) at 11:00am DURATION: 150 mins PROBLEM COUNT: Eleven BONUS COUNT: Two There will be three Ch13 problems, three Ch14 problems,

More information

Chabot College Fall Course Outline for Mathematics 47 MATHEMATICS FOR LIBERAL ARTS

Chabot College Fall Course Outline for Mathematics 47 MATHEMATICS FOR LIBERAL ARTS Chabot College Fall 2013 Course Outline for Mathematics 47 Catalog Description: MATHEMATICS FOR LIBERAL ARTS MTH 47 - Mathematics for Liberal Arts 3.00 units An introduction to a variety of mathematical

More information

Chapter 7. Inclusion-Exclusion a.k.a. The Sieve Formula

Chapter 7. Inclusion-Exclusion a.k.a. The Sieve Formula Chapter 7. Inclusion-Exclusion a.k.a. The Sieve Formula Prof. Tesler Math 184A Fall 2019 Prof. Tesler Ch. 7. Inclusion-Exclusion Math 184A / Fall 2019 1 / 25 Venn diagram and set sizes A = {1, 2, 3, 4,

More information

Circles & Interval & Set Notation.notebook. November 16, 2009 CIRCLES. OBJECTIVE Graph a Circle given the equation in standard form.

Circles & Interval & Set Notation.notebook. November 16, 2009 CIRCLES. OBJECTIVE Graph a Circle given the equation in standard form. OBJECTIVE Graph a Circle given the equation in standard form. Write the equation of a circle in standard form given a graph or two points (one being the center). Students will be able to write the domain

More information

Intro to Contemporary Math

Intro to Contemporary Math Intro to Contemporary Math Hamiltonian Circuits and Nearest Neighbor Algorithm Nicholas Nguyen nicholas.nguyen@uky.edu Department of Mathematics UK Agenda Hamiltonian Circuits and the Traveling Salesman

More information

CSE 326: Data Structures NP Completeness

CSE 326: Data Structures NP Completeness Announcements S 326: ata Structures NP ompleteness rian urless Spring 2008 enchmarking for project 3 due tonight Last homework due on riday at beginning of class inal next Thursday Scheduled for 8:30,

More information

Algorithm Design Strategies V

Algorithm Design Strategies V Algorithm Design Strategies V Joaquim Madeira Version 0.0 October 2016 U. Aveiro, October 2016 1 Overview The 0-1 Knapsack Problem Revisited The Fractional Knapsack Problem Greedy Algorithms Example Coin

More information

A path that visits each vertex exactly once is a path

A path that visits each vertex exactly once is a path ( c ) p s t e i n, a r t e r, & o l l i n g e r 2016 h a p t e r 2 : u s i n e s s f f i c i e n c y P a g e 1 HPTR 2: USINSS FFIINY 2.1 Hamiltonian ircuits path that visits each vertex exactly once is

More information

Survey of Voting Procedures and Paradoxes

Survey of Voting Procedures and Paradoxes Survey of Voting Procedures and Paradoxes Stanford University ai.stanford.edu/ epacuit/lmh Fall, 2008 :, 1 The Voting Problem Given a (finite) set X of candidates and a (finite) set A of voters each of

More information

Practice Final Solutions. 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) { 2 j = 0 3 if (n = 0) { 4 return j

Practice Final Solutions. 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) { 2 j = 0 3 if (n = 0) { 4 return j Practice Final Solutions 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) 2 j = 0 3 if (n = 0) 4 return j } 5 else 6 j = 2n+ alg(n 1) 7 return j } } Set up a recurrence relation

More information

1 More finite deterministic automata

1 More finite deterministic automata CS 125 Section #6 Finite automata October 18, 2016 1 More finite deterministic automata Exercise. Consider the following game with two players: Repeatedly flip a coin. On heads, player 1 gets a point.

More information

Discrete Math. Background Knowledge/Prior Skills Commutative and associative properties Solving systems of equations

Discrete Math. Background Knowledge/Prior Skills Commutative and associative properties Solving systems of equations Discrete Math Numbers and Operations Standard: Understands and applies concepts of numbers and operations. Power 1: Understands numbers, ways of representing numbers, relationships among numbers, and number

More information

The Pairwise-Comparison Method

The Pairwise-Comparison Method The Pairwise-Comparison Method Lecture 12 Section 1.5 Robb T. Koether Hampden-Sydney College Mon, Sep 19, 2016 Robb T. Koether (Hampden-Sydney College) The Pairwise-Comparison Method Mon, Sep 19, 2016

More information

P, NP, NP-Complete. Ruth Anderson

P, NP, NP-Complete. Ruth Anderson P, NP, NP-Complete Ruth Anderson A Few Problems: Euler Circuits Hamiltonian Circuits Intractability: P and NP NP-Complete What now? Today s Agenda 2 Try it! Which of these can you draw (trace all edges)

More information

Data Structures in Java

Data Structures in Java Data Structures in Java Lecture 21: Introduction to NP-Completeness 12/9/2015 Daniel Bauer Algorithms and Problem Solving Purpose of algorithms: find solutions to problems. Data Structures provide ways

More information

AP Statistics Ch 6 Probability: The Study of Randomness

AP Statistics Ch 6 Probability: The Study of Randomness Ch 6.1 The Idea of Probability Chance behavior is unpredictable in the short run but has a regular and predictable pattern in the long run. We call a phenomenon random if individual outcomes are uncertain

More information

Number Theory. Number Theory. 6.1 Number Theory

Number Theory. Number Theory. 6.1 Number Theory 6.1 Number Theory Number Theory The numbers 1, 2, 3, are called the counting numbers or natural numbers. The study of the properties of counting numbers is called number theory. 2 2010 Pearson Education,

More information

Expressions and Formulas 1.1. Please Excuse My Dear Aunt Sally

Expressions and Formulas 1.1. Please Excuse My Dear Aunt Sally Expressions and Formulas 1.1 Order of Operations (PEMDAS) 1. Parenthesis 2. Exponents 3. Multiply or Divide from left to right 4. Add of Subtract from left to right Please Excuse My Dear Aunt Sally Example

More information

CS Algorithms and Complexity

CS Algorithms and Complexity CS 50 - Algorithms and Complexity Linear Programming, the Simplex Method, and Hard Problems Sean Anderson 2/15/18 Portland State University Table of contents 1. The Simplex Method 2. The Graph Problem

More information

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 2 Circuit Optimization Logic and omputer Design Fundamentals hapter 2 ombinational Logic ircuits Part 2 ircuit Optimization harles Kime & Thomas Kaminski 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode)

More information

MATH 19-02: HW 5 TUFTS UNIVERSITY DEPARTMENT OF MATHEMATICS SPRING 2018

MATH 19-02: HW 5 TUFTS UNIVERSITY DEPARTMENT OF MATHEMATICS SPRING 2018 MATH 19-02: HW 5 TUFTS UNIVERSITY DEPARTMENT OF MATHEMATICS SPRING 2018 As we ve discussed, a move favorable to X is one in which some voters change their preferences so that X is raised, while the relative

More information

Voting Handout. Election from the text, p. 47 (for use during class)

Voting Handout. Election from the text, p. 47 (for use during class) Voting Handout Election from the text, p. 47 (for use during class) 3 2 1 1 2 1 1 1 1 2 A B B B D D E B B E C C A C A A C E E C D D C A B E D C C A E E E E E B B A D B B A D D C C A D A D 1. Use the following

More information

Partial lecture notes THE PROBABILITY OF VIOLATING ARROW S CONDITIONS

Partial lecture notes THE PROBABILITY OF VIOLATING ARROW S CONDITIONS Partial lecture notes THE PROBABILITY OF VIOLATING ARROW S CONDITIONS 1 B. Preference Aggregation Rules 3. Anti-Plurality a. Assign zero points to a voter's last preference and one point to all other preferences.

More information

MAT 135 In-Class Assignments Answer Key

MAT 135 In-Class Assignments Answer Key MAT 135 In-Class Assignments Answer Key Answers are listed under the heading of each section. Where a section was continued on multiple pages, the answers are all listed under the section heading. If there

More information

Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)(CSE/IT)/SEM-4/M-401/ MATHEMATICS - III

Name :. Roll No. :... Invigilator s Signature :.. CS/B.TECH (NEW)(CSE/IT)/SEM-4/M-401/ MATHEMATICS - III Name :. Roll No. :..... Invigilator s Signature :.. 202 MATHEMATICS - III Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers

More information

Finite Dictatorships and Infinite Democracies

Finite Dictatorships and Infinite Democracies Finite Dictatorships and Infinite Democracies Iian B. Smythe October 20, 2015 Abstract Does there exist a reasonable method of voting that when presented with three or more alternatives avoids the undue

More information

The numbers 1, 2, 3, are called the counting numbers or natural numbers. The study of the properties of counting numbers is called number theory.

The numbers 1, 2, 3, are called the counting numbers or natural numbers. The study of the properties of counting numbers is called number theory. 6.1 Number Theory Number Theory The numbers 1, 2, 3, are called the counting numbers or natural numbers. The study of the properties of counting numbers is called number theory. 2010 Pearson Education,

More information

Combinatorics. But there are some standard techniques. That s what we ll be studying.

Combinatorics. But there are some standard techniques. That s what we ll be studying. Combinatorics Problem: How to count without counting. How do you figure out how many things there are with a certain property without actually enumerating all of them. Sometimes this requires a lot of

More information

2030 LECTURES. R. Craigen. Inclusion/Exclusion and Relations

2030 LECTURES. R. Craigen. Inclusion/Exclusion and Relations 2030 LECTURES R. Craigen Inclusion/Exclusion and Relations The Principle of Inclusion-Exclusion 7 ROS enumerates the union of disjoint sets. What if sets overlap? Some 17 out of 30 students in a class

More information

Lecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics?

Lecture 1. Chapter 1. (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 ( ). 1. What is Statistics? Lecture 1 (Part I) Material Covered in This Lecture: Chapter 1, Chapter 2 (2.1 --- 2.6). Chapter 1 1. What is Statistics? 2. Two definitions. (1). Population (2). Sample 3. The objective of statistics.

More information

Chapter 1. The Mathematics of Voting

Chapter 1. The Mathematics of Voting Introduction to Contemporary Mathematics Math 112 1.1. Preference Ballots and Preference Schedules Example (The Math Club Election) The math club is electing a new president. The candidates are Alisha

More information

Probability Notes. Definitions: The probability of an event is the likelihood of choosing an outcome from that event.

Probability Notes. Definitions: The probability of an event is the likelihood of choosing an outcome from that event. ability Notes Definitions: Sample Space: sample space is a set or collection of possible outcomes. Flipping a Coin: {Head, Tail} Rolling Two Die: {,,,, 6, 7, 8, 9, 0,, } Outcome: n outcome is an element

More information

Voting Theory: Pairwise Comparison

Voting Theory: Pairwise Comparison If is removed, which candidate will win if Plurality is used? If C is removed, which candidate will win if Plurality is used? If B is removed, which candidate will win if Plurality is used? Voting Method:

More information

CISC-102 Fall 2017 Week 1 David Rappaport Goodwin G-532 Office Hours: Tuesday 1:30-3:30

CISC-102 Fall 2017 Week 1 David Rappaport Goodwin G-532 Office Hours: Tuesday 1:30-3:30 Week 1 Fall 2017 1 of 42 CISC-102 Fall 2017 Week 1 David Rappaport daver@cs.queensu.ca Goodwin G-532 Office Hours: Tuesday 1:30-3:30 Homework Homework every week. Keep up to date or you risk falling behind.

More information

Check off these skills when you feel that you have mastered them. Write in your own words the definition of a Hamiltonian circuit.

Check off these skills when you feel that you have mastered them. Write in your own words the definition of a Hamiltonian circuit. Chapter Objectives Check off these skills when you feel that you have mastered them. Write in your own words the definition of a Hamiltonian circuit. Explain the difference between an Euler circuit and

More information

NP-Complete Problems. More reductions

NP-Complete Problems. More reductions NP-Complete Problems More reductions Definitions P: problems that can be solved in polynomial time (typically in n, size of input) on a deterministic Turing machine Any normal computer simulates a DTM

More information

Unit 7 Day 4 Section 4.5 & Practice Hamiltonian Circuits and Paths

Unit 7 Day 4 Section 4.5 & Practice Hamiltonian Circuits and Paths Unit 7 Day 4 Section 4.5 & Practice 4.1-4.5 Hamiltonian Circuits and Paths Warm Up ~ Day 4 D B Is the following graph E 1) Connected? 2) Complete? F G 3) An Euler Circuit? If so, write the circuit. If

More information

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr.

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr. Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr. Radhika Nagpal Quiz 1 Appendix Appendix Contents 1 Induction 2 2 Relations

More information

Spring 2016 Indiana Collegiate Mathematics Competition (ICMC) Exam

Spring 2016 Indiana Collegiate Mathematics Competition (ICMC) Exam Spring 2016 Indiana Collegiate Mathematics Competition (ICMC) Exam Mathematical Association of America Indiana Section Written by: Paul Fonstad, Justin Gash, and Stacy Hoehn (Franklin College) PROBLEM

More information

UNIT 5 ~ Probability: What Are the Chances? 1

UNIT 5 ~ Probability: What Are the Chances? 1 UNIT 5 ~ Probability: What Are the Chances? 1 6.1: Simulation Simulation: The of chance behavior, based on a that accurately reflects the phenomenon under consideration. (ex 1) Suppose we are interested

More information

Unit Calendar. Date Sect. Topic Homework HW On-Time April Direct Variation Page 256: #3-37 odd

Unit Calendar. Date Sect. Topic Homework HW On-Time April Direct Variation Page 256: #3-37 odd Name/Period: Unit Calendar Date Sect. Topic Homework HW On-Time April 19 4.6 Direct Variation Page 256: #3-37 odd Essential Question: What does the constant of variation represent in direct variation?

More information

Preliminaries and Complexity Theory

Preliminaries and Complexity Theory Preliminaries and Complexity Theory Oleksandr Romanko CAS 746 - Advanced Topics in Combinatorial Optimization McMaster University, January 16, 2006 Introduction Book structure: 2 Part I Linear Algebra

More information

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then

If S = {O 1, O 2,, O n }, where O i is the i th elementary outcome, and p i is the probability of the i th elementary outcome, then 1.1 Probabilities Def n: A random experiment is a process that, when performed, results in one and only one of many observations (or outcomes). The sample space S is the set of all elementary outcomes

More information

Copyright 2012 Pearson Education, Inc. Publishing as Prentice Hall.

Copyright 2012 Pearson Education, Inc. Publishing as Prentice Hall. Chapter : Equations, Inequalities, and Problem Solving ISM: Intermediate Algebra. + + 0 The solution set is [0, ).. () The solution set is [, ). 0. >.. > >. The solution set is (., ).. The solution set

More information

SETS. JEE-Mathematics

SETS. JEE-Mathematics STS J-Mathematics ST : A set is a collection of well defined objects which are distinct from each other Set are generally denoted by capital letters A, B, C,... etc. and the elements of the set by a, b,

More information

NP-completeness. Chapter 34. Sergey Bereg

NP-completeness. Chapter 34. Sergey Bereg NP-completeness Chapter 34 Sergey Bereg Oct 2017 Examples Some problems admit polynomial time algorithms, i.e. O(n k ) running time where n is the input size. We will study a class of NP-complete problems

More information

Willmar Public Schools Curriculum Map

Willmar Public Schools Curriculum Map Subject Area Mathematics Senior High Course Name Advanced Algebra 2A (Prentice Hall Mathematics) Date April 2010 The Advanced Algebra 2A course parallels each other in content and time. The Advanced Algebra

More information

NP-Completeness. Until now we have been designing algorithms for specific problems

NP-Completeness. Until now we have been designing algorithms for specific problems NP-Completeness 1 Introduction Until now we have been designing algorithms for specific problems We have seen running times O(log n), O(n), O(n log n), O(n 2 ), O(n 3 )... We have also discussed lower

More information

Finite Math Section 6_1 Solutions and Hints

Finite Math Section 6_1 Solutions and Hints Finite Math Section 6_1 Solutions and Hints by Brent M. Dingle for the book: Finite Mathematics, 7 th Edition by S. T. Tan. DO NOT PRINT THIS OUT AND TURN IT IN!!!!!!!! This is designed to assist you in

More information

Chapter 3: Probability 3.1: Basic Concepts of Probability

Chapter 3: Probability 3.1: Basic Concepts of Probability Chapter 3: Probability 3.1: Basic Concepts of Probability Objectives Identify the sample space of a probability experiment and a simple event Use the Fundamental Counting Principle Distinguish classical

More information

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,

CS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism, CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for

More information

Chapter Learning Objectives. Random Experiments Dfiii Definition: Dfiii Definition:

Chapter Learning Objectives. Random Experiments Dfiii Definition: Dfiii Definition: Chapter 2: Probability 2-1 Sample Spaces & Events 2-1.1 Random Experiments 2-1.2 Sample Spaces 2-1.3 Events 2-1 1.4 Counting Techniques 2-2 Interpretations & Axioms of Probability 2-3 Addition Rules 2-4

More information

University of Washington March 21, 2013 Department of Computer Science and Engineering CSEP 521, Winter Exam Solution, Monday, March 18, 2013

University of Washington March 21, 2013 Department of Computer Science and Engineering CSEP 521, Winter Exam Solution, Monday, March 18, 2013 University of Washington March 21, 2013 Department of Computer Science and Engineering CSEP 521, Winter 2013 Exam Solution, Monday, March 18, 2013 Instructions: NAME: Closed book, closed notes, no calculators

More information

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University NP-Completeness CptS 223 Advanced Data Structures Larry Holder School of Electrical Engineering and Computer Science Washington State University 1 Hard Graph Problems Hard means no known solutions with

More information

ABHELSINKI UNIVERSITY OF TECHNOLOGY

ABHELSINKI UNIVERSITY OF TECHNOLOGY Approximation Algorithms Seminar 1 Set Cover, Steiner Tree and TSP Siert Wieringa siert.wieringa@tkk.fi Approximation Algorithms Seminar 1 1/27 Contents Approximation algorithms for: Set Cover Steiner

More information

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2) Algorithms and Theory of Computation Lecture 22: NP-Completeness (2) Xiaohui Bei MAS 714 November 8, 2018 Nanyang Technological University MAS 714 November 8, 2018 1 / 20 Set Cover Set Cover Input: a set

More information

Dr. Y. İlker TOPCU. Dr. Özgür KABAK web.itu.edu.tr/kabak/

Dr. Y. İlker TOPCU. Dr. Özgür KABAK web.itu.edu.tr/kabak/ Dr. Y. İlker TOPCU www.ilkertopcu.net www.ilkertopcu.org www.ilkertopcu.info facebook.com/yitopcu twitter.com/yitopcu instagram.com/yitopcu Dr. Özgür KABAK web.itu.edu.tr/kabak/ Decision Making? Decision

More information

ICM ~ Final Exam Review Name: 1

ICM ~ Final Exam Review Name: 1 ICM ~ Final Exam Review Name: 1 Unit 1 Probability Let U = {a, b, c, d, e, f, g, h, i, j}, A = {a, b, c, f, h, i, j}, B = {b, c, d, g} and C = {a, d, e, h, j}. 1. Find A U (B U C).. Find A B. 3. Find B

More information

HW MATH425/525 Lecture Notes 1

HW MATH425/525 Lecture Notes 1 HW MATH425/525 Lecture Notes 1 Definition 4.1 If an experiment can be repeated under the same condition, its outcome cannot be predicted with certainty, and the collection of its every possible outcome

More information

The traveling salesman problem

The traveling salesman problem Chapter 58 The traveling salesman problem The traveling salesman problem (TSP) asks for a shortest Hamiltonian circuit in a graph. It belongs to the most seductive problems in combinatorial optimization,

More information

Section 2: Classes of Sets

Section 2: Classes of Sets Section 2: Classes of Sets Notation: If A, B are subsets of X, then A \ B denotes the set difference, A \ B = {x A : x B}. A B denotes the symmetric difference. A B = (A \ B) (B \ A) = (A B) \ (A B). Remarks

More information

SET THEORY. 1. Roster or Tabular form In this form the elements of the set are enclosed in curly braces { } after separating them by commas.

SET THEORY. 1. Roster or Tabular form In this form the elements of the set are enclosed in curly braces { } after separating them by commas. SETS: set is a well-defined collection of objects. SET THEORY The objects in a set are called elements or members of the set. If x is an object of set, we write x and is read as x is an element of set

More information

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Jan Stelovsky based on slides by Dr. Baek and Dr. Still Originals by Dr. M. P. Frank and Dr. J.L. Gross Provided by

More information

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007 Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Fall 2007 1 / 42 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 2.1, 2.2 of Rosen Introduction I Introduction

More information

Fall Math 140 Week-in-Review #5 courtesy: Kendra Kilmer (covering Sections 3.4 and 4.1) Section 3.4

Fall Math 140 Week-in-Review #5 courtesy: Kendra Kilmer (covering Sections 3.4 and 4.1) Section 3.4 Section 3.4 A Standard Maximization Problem has the following properties: The objective function is to be maximized. All variables are non-negative. Fall 2017 Math 140 Week-in-Review #5 courtesy: Kendra

More information

CS/COE

CS/COE CS/COE 1501 www.cs.pitt.edu/~nlf4/cs1501/ P vs NP But first, something completely different... Some computational problems are unsolvable No algorithm can be written that will always produce the correct

More information

Set Operations. Combining sets into new sets

Set Operations. Combining sets into new sets Set Operations Combining sets into new sets Union of Sets The union of two sets is the set of all elements that are in one or the other set: A B = {x x A x B} The union is the set theoretic equivalent

More information

8.3 Hamiltonian Paths and Circuits

8.3 Hamiltonian Paths and Circuits 8.3 Hamiltonian Paths and Circuits 8.3 Hamiltonian Paths and Circuits A Hamiltonian path is a path that contains each vertex exactly once A Hamiltonian circuit is a Hamiltonian path that is also a circuit

More information

Unit 3A: Factoring & Solving Quadratic Equations After completion of this unit, you will be able to

Unit 3A: Factoring & Solving Quadratic Equations After completion of this unit, you will be able to Unit 3A: Factoring & Solving Quadratic Equations After completion of this unit, you will be able to Learning Target #1: Factoring Factor the GCF out of a polynomial Factor a polynomial when a = 1 Factor

More information

EC3224 Autumn Lecture #03 Applications of Nash Equilibrium

EC3224 Autumn Lecture #03 Applications of Nash Equilibrium Reading EC3224 Autumn Lecture #03 Applications of Nash Equilibrium Osborne Chapter 3 By the end of this week you should be able to: apply Nash equilibrium to oligopoly games, voting games and other examples.

More information

Models of Computation. by Costas Busch, LSU

Models of Computation. by Costas Busch, LSU Models of Computation by Costas Busch, LSU 1 Computation CPU memory 2 temporary memory input memory CPU output memory Program memory 3 Example: f ( x) x 3 temporary memory input memory Program memory compute

More information

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006 Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 1 / 1 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 1.6 1.7 of Rosen Introduction I We ve already

More information

Hamiltonian Cycle. Hamiltonian Cycle

Hamiltonian Cycle. Hamiltonian Cycle Hamiltonian Cycle Hamiltonian Cycle Hamiltonian Cycle Problem Hamiltonian Cycle Given a directed graph G, is there a cycle that visits every vertex exactly once? Such a cycle is called a Hamiltonian cycle.

More information

CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal?

CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal? CSCI3390-Lecture 18: Why is the P =?NP Problem Such a Big Deal? The conjecture that P is different from NP made its way on to several lists of the most important unsolved problems in Mathematics (never

More information

CS 154 Introduction to Automata and Complexity Theory

CS 154 Introduction to Automata and Complexity Theory CS 154 Introduction to Automata and Complexity Theory cs154.stanford.edu 1 INSTRUCTORS & TAs Ryan Williams Cody Murray Lera Nikolaenko Sunny Rajan 2 Textbook 3 Homework / Problem Sets Homework will be

More information

Hamiltonian Graphs Graphs

Hamiltonian Graphs Graphs COMP2121 Discrete Mathematics Hamiltonian Graphs Graphs Hubert Chan (Chapter 9.5) [O1 Abstract Concepts] [O2 Proof Techniques] [O3 Basic Analysis Techniques] 1 Hamiltonian Paths and Circuits [O1] A Hamiltonian

More information

Econ 325: Introduction to Empirical Economics

Econ 325: Introduction to Empirical Economics Econ 325: Introduction to Empirical Economics Lecture 2 Probability Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 3-1 3.1 Definition Random Experiment a process leading to an uncertain

More information

Math 1313 Experiments, Events and Sample Spaces

Math 1313 Experiments, Events and Sample Spaces Math 1313 Experiments, Events and Sample Spaces At the end of this recording, you should be able to define and use the basic terminology used in defining experiments. Terminology The next main topic in

More information

Mapping Earth. How are Earth s surface features measured and modeled?

Mapping Earth. How are Earth s surface features measured and modeled? Name Mapping Earth How are Earth s surface features measured and modeled? Before You Read Before you read the chapter, think about what you know about maps Record your thoughts in the first column Pair

More information

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e

Chapter 5 : Probability. Exercise Sheet. SHilal. 1 P a g e 1 P a g e experiment ( observing / measuring ) outcomes = results sample space = set of all outcomes events = subset of outcomes If we collect all outcomes we are forming a sample space If we collect some

More information

1 Basic Combinatorics

1 Basic Combinatorics 1 Basic Combinatorics 1.1 Sets and sequences Sets. A set is an unordered collection of distinct objects. The objects are called elements of the set. We use braces to denote a set, for example, the set

More information

CSCI3390-Lecture 17: A sampler of NP-complete problems

CSCI3390-Lecture 17: A sampler of NP-complete problems CSCI3390-Lecture 17: A sampler of NP-complete problems 1 List of Problems We now know that if L is any problem in NP, that L P SAT, and thus SAT is NP-hard. Since SAT is also in NP we find that SAT is

More information

Circuits. CSE 373 Data Structures

Circuits. CSE 373 Data Structures Circuits CSE 373 Data Structures Readings Reading Alas not in your book. So it won t be on the final! Circuits 2 Euler Euler (1707-1783): might be the most prolific mathematician of all times (analysis,

More information

Combinatorial optimization problems

Combinatorial optimization problems Combinatorial optimization problems Heuristic Algorithms Giovanni Righini University of Milan Department of Computer Science (Crema) Optimization In general an optimization problem can be formulated as:

More information

Probability (Devore Chapter Two)

Probability (Devore Chapter Two) Probability (Devore Chapter Two) 1016-345-01: Probability and Statistics for Engineers Fall 2012 Contents 0 Administrata 2 0.1 Outline....................................... 3 1 Axiomatic Probability 3

More information

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ).

1. When applied to an affected person, the test comes up positive in 90% of cases, and negative in 10% (these are called false negatives ). CS 70 Discrete Mathematics for CS Spring 2006 Vazirani Lecture 8 Conditional Probability A pharmaceutical company is marketing a new test for a certain medical condition. According to clinical trials,

More information

1. Let g(x) and h(x) be polynomials with real coefficients such that

1. Let g(x) and h(x) be polynomials with real coefficients such that 1. Let g(x) and h(x) be polynomials with real coefficients such that g(x)(x 2 3x + 2) = h(x)(x 2 + 3x + 2) and f(x) = g(x)h(x) + (x 4 5x 2 + 4). Prove that f(x) has at least four real roots. 2. Let M be

More information

Probability Theory and Applications

Probability Theory and Applications Probability Theory and Applications Videos of the topics covered in this manual are available at the following links: Lesson 4 Probability I http://faculty.citadel.edu/silver/ba205/online course/lesson

More information

Axioms of Probability. Set Theory. M. Bremer. Math Spring 2018

Axioms of Probability. Set Theory. M. Bremer. Math Spring 2018 Math 163 - pring 2018 Axioms of Probability Definition: The set of all possible outcomes of an experiment is called the sample space. The possible outcomes themselves are called elementary events. Any

More information

SAT, Coloring, Hamiltonian Cycle, TSP

SAT, Coloring, Hamiltonian Cycle, TSP 1 SAT, Coloring, Hamiltonian Cycle, TSP Slides by Carl Kingsford Apr. 28, 2014 Sects. 8.2, 8.7, 8.5 2 Boolean Formulas Boolean Formulas: Variables: x 1, x 2, x 3 (can be either true or false) Terms: t

More information

EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 24 Course policies

More information

Introduction The Search Algorithm Grovers Algorithm References. Grovers Algorithm. Quantum Parallelism. Joseph Spring.

Introduction The Search Algorithm Grovers Algorithm References. Grovers Algorithm. Quantum Parallelism. Joseph Spring. Quantum Parallelism Applications Outline 1 2 One or Two Points 3 4 Quantum Parallelism We have discussed the concept of quantum parallelism and now consider a range of applications. These will include:

More information

SPATIAL VOTING (MULTIPLE DIMENSIONS)

SPATIAL VOTING (MULTIPLE DIMENSIONS) SPATIAL VOTING (MULTIPLE DIMENSIONS) 1 Assumptions Alternatives are points in an n-dimensional space. Examples for 2D: Social Issues and Economic Issues Domestic Spending and Foreign Spending Single-peaked

More information

n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition

n = p 1 p 2 p r = q 1 q 2 q m, then r = m (i.e. the number of primes in any prime decomposition Department of Mathematical Sciences Instructor: Daiva Pucinskaite Discrete Mathematics Factoring Recall. Fundamental Theorem of Arithmetic. Let n be a positive integer n > 1. Then n can be represented

More information

2011 Pearson Education, Inc

2011 Pearson Education, Inc Statistics for Business and Economics Chapter 3 Probability Contents 1. Events, Sample Spaces, and Probability 2. Unions and Intersections 3. Complementary Events 4. The Additive Rule and Mutually Exclusive

More information

Math 3 Proportion & Probability Part 2 Sequences, Patterns, Frequency Tables & Venn Diagrams

Math 3 Proportion & Probability Part 2 Sequences, Patterns, Frequency Tables & Venn Diagrams Math 3 Proportion & Probability Part 2 Sequences, Patterns, Frequency Tables & Venn Diagrams 1 MATH 2 REVIEW ARITHMETIC SEQUENCES In an Arithmetic Sequence the difference between one term and the next

More information

E PLURIBUS HUGO Out of the Many, a Hugo

E PLURIBUS HUGO Out of the Many, a Hugo v0. E PLURIBUS HUGO Out of the Many, a Hugo What does E Pluribus Hugo do? EPH is a way of tallying nominations that minimizes the effects of slates. What doesn t E Pluribus Hugo do? It doesn t change what

More information

Introductory Mathematics

Introductory Mathematics Introductory Mathematics 1998 2003 1.01 Identify subsets of the real number system. 1.02 Estimate and compute with rational Grade 7: 1.02 numbers. 1.03 Compare, order, and convert among Grade 6: 1.03 fractions,

More information