CS 1110: Introduction to Computing Using Python Recursion

Size: px
Start display at page:

Download "CS 1110: Introduction to Computing Using Python Recursion"

Transcription

1 CS 1110: Introdution to Computing Using Python Leture 15 Reursion [Andersen, Gries, Lee, Marshner, Van Loan, White]

2 Announements: Prelim 1 Graded and released Mean: 81 out of 104 (78%) Can pik up your exam in homework handak room Need Cornell ID Suggest printing your netid on paper Do not disuss exam with people taking makeups. Regrade requests: we will send to you 10/13/16 Reursion 2

3 Announements: Assignment 3 Released. Due: Thursday, Marh 30 th, 11:59pm Reommendation: follow milestone deadlines. You MUST aknowledge help from others We run software analyzers to detet similar programs Have had some aademi integrity violations so far Not a reursion assignment! 10/13/16 Reursion 3

4 Out. Not a reursion la! Announement: La 8 10/13/16 Reursion 4

5 Reursion Reursive Definition: A definition that is defined in terms of itself 10/13/16 Reursion 5

6 A Mathematial Example: Fatorial Non-reursive definition: n! = n n = n (n-1 2 1) Reursive definition: n! = n (n-1)! for n 0 0! = 1 Reursive ase Base ase What happens if there is no ase ase? 10/13/16 Reursion 6

7 Reursion Reursive Definition: A definition that is defined in terms of itself Reursive Funtion: A funtion that alls itself (diretly or indiretly) 10/13/16 Reursion 7

8 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1 n 3 3 return n*fatorial(n-1) Call: fatorial(3) 10/13/16 Reursion 8

9 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 3 return n*fatorial(n-1) Call: fatorial(3) 10/13/16 Reursion 9

10 Reursion 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 3 return n*fatorial(n-1) Call: fatorial(3) Now what? Eah all is a new frame. 10/13/16 Reursion 10

11 What happens next? fatorial 1, 3 n 3 A: fatorial 1, 3 n 3 fatorial 1 n 2 C: CORRECT ERASE FRAME fatorial 1 n 3 B: fatorial 1, 3, 1 n 3 2 D: fatorial 1, 3, 1 n 3 2 fatorial 1 n 2 10/13/16 Reursion 11

12 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1 n 2 3 return n*fatorial(n-1) Call: fatorial(3) 10/13/16 Reursion 12

13 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 3 return n*fatorial(n-1) Call: fatorial(3) 10/13/16 Reursion 13

14 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1 3 return n*fatorial(n-1) n 1 Call: fatorial(3) 10/13/16 Reursion 14

15 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) n 1 Call: fatorial(3) 10/13/16 Reursion 15

16 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) n 1 Call: fatorial(3) fatorial n /13/16 Reursion 16

17 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) n 1 Call: fatorial(3) fatorial n 0 1, 2 10/13/16 Reursion 17

18 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 18

19 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 19

20 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 RETURN 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 20

21 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 RETURN 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 21

22 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 RETURN 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 RETURN 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 22

23 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 fatorial 1, 3 n 2 RETURN 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 RETURN 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 23

24 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 RETURN 6 fatorial 1, 3 n 2 RETURN 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 RETURN 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 24

25 Reursive Call Frames 1 2 def fatorial(n): """Returns: fatorial of n. Pre: n 0 an int""" if n == 0: return 1 fatorial 1, 3 n 3 RETURN 6 fatorial 1, 3 n 2 RETURN 2 fatorial 1, 3 3 return n*fatorial(n-1) Call: fatorial(3) n 1 RETURN 1 fatorial 1, 2 n 0 RETURN 1 10/13/16 Reursion 25

26 Example: Fionnai Sequene Sequene of numers: 1, 1, 2, 3, 5, 8, 13,... a 0 a 1 a 2 a 3 a 4 a 5 a 6 Get the next numer y adding previous two What is a 8? A: a 8 = 21 B: a 8 = 29 C: a 8 = 34 D: None of these. 10/13/16 Reursion 26

27 Example: Fionnai Sequene Sequene of numers: 1, 1, 2, 3, 5, 8, 13,... a 0 a 1 a 2 a 3 a 4 a 5 a 6 Get the next numer y adding previous two What is a 8? A: a 8 = 21 B: a 8 = 29 C: a 8 = 34 orret D: None of these. 10/13/16 Reursion 27

28 Example: Fionnai Sequene Sequene of numers: 1, 1, 2, 3, 5, 8, 13,... a 0 a 1 a 2 a 3 a 4 a 5 a 6 Get the next numer y adding previous two What is a 8? Reursive definition: a n = a n-1 + a n-2 a 0 = 1 a 1 = 1 Reursive Case Base Case (another) Base Case Why did we need two ase ases this time? 10/13/16 Reursion 28

29 Fionai as a Reursive Funtion def fionai(n): """Returns: Fionai no. a n Preondition: n 0 an int""" if n <= 1: return 1 Base ase(s) return (fionai(n-1)+ fionai(n-2)) Reursive ase Handles oth ase ases in one onditional. 10/13/16 Reursion 29

30 Fionai as a Reursive Funtion def fionai(n): """Returns: Fionai no. a n Preondition: n 0 an int""" if n <= 1: return 1 return (fionai(n-1)+ fionai(n-2)) fionai 3 n 5 fionai 1 fionai 1 n 4 n 3 10/13/16 Reursion 30

31 Reursion vs Iteration Reursion is provaly equivalent to iteration Iteration inludes for-loop and while-loop (later) Anything an do in one, an do in the other But some things are easier with reursion And some things are easier with iteration Will not teah you when to hoose reursion We just want you to understand the tehnique 10/13/16 Reursion 31

32 Reursion is est for Divide and Conquer Goal: Solve prolem P on a piee of data data 10/13/16 Reursion 32

33 Reursion is est for Divide and Conquer Goal: Solve prolem P on a piee of data data Idea: Split data into two parts and solve prolem data 1 data 2 Solve Prolem P Solve Prolem P 10/13/16 Reursion 33

34 Reursion is est for Divide and Conquer Goal: Solve prolem P on a piee of data data Idea: Split data into two parts and solve prolem data 1 data 2 Solve Prolem P Solve Prolem P Comine Answer! 10/13/16 Reursion 34

35 Divide and Conquer Example Count the numer of 'e's in a string: p e n n e Two 'e's p e n n e One 'e' One 'e' 10/13/16 Reursion 35

36 Divide and Conquer Example Count the numer of 'e's in a string: p e n n e Two 'e's p e n n e Zero 'e's Two 'e's 10/13/16 Reursion 36

37 Three Steps for Divide and Conquer 1. Deide what to do on small data Some data annot e roken up Have to ompute this answer diretly 2. Deide how to reak up your data Both halves should e smaller than whole Often no wrong way to do this (next leture) 3. Deide how to omine your answers Assume the smaller answers are orret Comining them should give igger answer 10/13/16 Reursion 37

38 Divide and Conquer Example def num_es(s): """Returns: # of 'e's in s""" # 1. Handle small data if s == '': return 0 elif len(s) == 1: return 1 if s[0] == 'e' else 0 # 2. Break into two parts left = num_es(s[0]) right = num_es(s[1:]) # 3. Comine the result return left+right Short-ut for s[0] if s[0] == 'e : return 1 else: return 0 p e n n s[1:] e 10/13/16 Reursion 38

39 Divide and Conquer Example def num_es(s): """Returns: # of 'e's in s""" # 1. Handle small data if s == '': return 0 elif len(s) == 1: return 1 if s[0] == 'e' else 0 # 2. Break into two parts left = num_es(s[0]) right = num_es(s[1:]) # 3. Comine the result return left+right Short-ut for s[0] if s[0] == 'e : return 1 else: return 0 p e n n s[1:] e 10/13/16 Reursion 39

40 Divide and Conquer Example def num_es(s): """Returns: # of 'e's in s""" # 1. Handle small data if s == '': return 0 elif len(s) == 1: return 1 if s[0] == 'e' else 0 # 2. Break into two parts left = num_es(s[0]) right = num_es(s[1:]) # 3. Comine the result return left+right Short-ut for s[0] if s[0] == 'e : return 1 else: return 0 p e n n s[1:] e 10/13/16 Reursion 40

41 Divide and Conquer Example def num_es(s): """Returns: # of 'e's in s""" # 1. Handle small data if s == '': return 0 elif len(s) == 1: return 1 if s[0] == 'e' else 0 # 2. Break into two parts left = num_es(s[0]) right = num_es(s[1:]) # 3. Comine the result return left+right Short-ut for s[0] if s[0] == 'e : return 1 else: return 0 p e n n s[1:] e 10/13/16 Reursion 41

42 Divide and Conquer Example def num_es(s): """Returns: # of 'e's in s""" # 1. Handle small data if s == '': return 0 elif len(s) == 1: return 1 if s[0] == 'e' else 0 Base Case # 2. Break into two parts left = num_es(s[0]) right = num_es(s[1:]) # 3. Comine the result return left+right Reursive Case 10/13/16 Reursion 42

43 Exerise: Remove Blanks from a String def (s): """Returns: s ut with its lanks removed""" 1. Deide what to do on small data If it is the empty string, nothing to do if s == '': return s If it is a single harater, delete it if a lank if s == ' ': # There is a spae here return '' # Empty string else: return s 10/13/16 Reursion 43

44 Exerise: Remove Blanks from a String def (s): """Returns: s ut with its lanks removed""" 2. Deide how to reak it up left = (s[0]) # A string with no lanks right = (s[1:]) # A string with no lanks 3. Deide how to omine the answer return left+right # String onatenation 10/13/16 Reursion 44

45 Putting it All Together def (s): """Returns: s w/o lanks""" if s == '': return s elif len(s) == 1: return '' if s[0] == ' ' else s left = (s[0]) right = (s[1:]) return left+right Handle small data Break up the data Comine answers 10/13/16 Reursion 45

46 Putting it All Together def (s): """Returns: s w/o lanks""" if s == '': return s elif len(s) == 1: return '' if s[0] == ' ' else s left = (s[0]) right = (s[1:]) return left+right Base Case Reursive Case 10/13/16 Reursion 46

47 Following the Reursion a 10/13/16 Reursion 47

48 Following the Reursion a a stops (ase ase) a stops (ase ase) 10/13/16 Reursion 48

49 Following the Reursion a a 10/13/16 Reursion 49

50 Following the Reursion a a a 10/13/16 Reursion 50

51 Following the Reursion a a a 10/13/16 Reursion 51

52 Following the Reursion a a a 10/13/16 Reursion 52

53 Following the Reursion a a a 10/13/16 Reursion 53

54 Following the Reursion a a a

55 Following the Reursion a a a

56 Following the Reursion a a a

57 Following the Reursion a a a

58 Following the Reursion a a a

59 Following the Reursion a a a a

60 Following the Reursion a a a a a

61 Following the Reursion a a a a a a

62 Tower of Hanoi Three towers: left, middle, and right n disks of unique sizes on left Goal: move all disks from left to right Cannot put a larger disk on top of a smaller disk left middle right 10/13/16 Reursion 62

63 1 Dis 1. Move from left to right 1 left middle right 10/13/16 Reursion 63

64 1 Dis 1. Move from left to right left middle right 1 10/13/16 Reursion 64

65 2 Diss 1. Move from left to middle 1 2 left middle right 10/13/16 Reursion 65

66 2 Diss 1. Move from left to middle 2. Move from left to right 2 1 left middle right 10/13/16 Reursion 66

67 2 Diss 1. Move from left to middle 2. Move from left to right 3. Move from middle to right 1 left middle right 2 10/13/16 Reursion 67

68 2 Diss 1. Move from left to middle 2. Move from left to right 3. Move from middle to right 1 2 left middle right 10/13/16 Reursion 68

69 3 Diss 1. Move from left to right left middle right 10/13/16 Reursion 70

70 3 Diss 1. Move from left to right 2. Move from left to middle left middle right 10/13/16 Reursion 71

71 3 Diss 1. Move from left to right 2. Move from left to middle 3. Move from right to middle left middle right 10/13/16 Reursion 72

72 1 3 2 left middle right 3 Diss 1. Move from left to right 2. Move from left to middle 3. Move from right to middle 4. Move from left to right 10/13/16 Reursion 73

73 3 Diss 1 2 left middle right 3 1. Move from left to right 2. Move from left to middle 3. Move from right to middle 4. Move from left to right 5. Move from middle to left 10/13/16 Reursion 74

74 3 Diss left middle right 1. Move from left to right 2. Move from left to middle 3. Move from right to middle 4. Move from left to right 5. Move from middle to left 6. Move from middle to right 10/13/16 Reursion 75

75 3 Diss left middle right 1. Move from left to right 2. Move from left to middle 3. Move from right to middle 4. Move from left to right 5. Move from middle to left 6. Move from middle to right 7. Move from left to right 10/13/16 Reursion 76

76 3 Diss 1 2 left middle right 3 1. Move from left to right 2. Move from left to middle 3. Move from right to middle 4. Move from left to right 5. Move from middle to left 6. Move from middle to right 7. Move from left to right 10/13/16 Reursion 77

77 4 Diss: High-level Idea left middle right 10/13/16 Reursion 78

78 4 Diss: High-level Idea Plan: move top three disks from left to middle left middle right 10/13/16 Reursion 79

79 4 Diss: High-level Idea left middle right Plan: move top three disks from left to middle Move: largest disk from left to right 10/13/16 Reursion 80

80 4 Diss: High-level Idea Plan: move top three disks from left to middle Move: largest disk from left to right Plan: move top three disks from middle to right left middle right 10/13/16 Reursion 81

81 4 Diss: High-level Idea Plan: move disks 1, 2, and 3 from left to middle left middle right 10/13/16 Reursion 82

82 4 Diss: High-level Idea Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right left middle right 10/13/16 Reursion 83

83 4 4 Diss: High-level Idea left middle right Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right 10/13/16 Reursion 84

84 4 Diss: High-level Idea left middle right Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right Plan: move disks 1 and 2 from right to middle 10/13/16 Reursion 85

85 4 Diss: High-level Idea left middle right Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right Plan: move disks 1 and 2 from right to middle 10/13/16 Reursion 86

86 4 Diss: High-level Idea left middle right Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right Plan: move disks 1 and 2 from right to middle Move: disk 4 from left to right 10/13/16 Reursion 87

87 4 Diss: High-level Idea left middle right Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right Plan: move disks 1 and 2 from right to middle Move: disk 4 from left to right Plan: move disks 1, 2, and 3 from middle to right 10/13/16 88

88 4 Diss: High-level Idea Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right Plan: move disks 1 and 2 from right to middle left middle right Move: disk 4 from left to right Plan: move disks 1, 2, and 3 from middle to right 10/13/16 89

89 Oservation: Plans within a Plan High-level plan Low-level plan Plan: move disks 1, 2, and 3 from left to middle Plan: move disks 1 and 2 from left to right Move: disk 3 from left to right Plan: move disks 1 and 2 from right to middle Move: disk 4 from left to right Plan: move disks 1, 2, and 3 from middle to right 10/13/16 90

90 General Pattern To move n disks from soure to target: disks 1,, n-1 4 disk n soure other disks? other target (soure, other, and target an e any permutation of left, middle and right) 1. Plan: move disks 1,, n-1 from soure to other 2. Move: disk n to from soure to target 3. Plan: move disks 1,, n-1 from other to target 10/13/16 Reursion 91

Revision: April 18, E Main Suite D Pullman, WA (509) Voice and Fax

Revision: April 18, E Main Suite D Pullman, WA (509) Voice and Fax Lab 9: Steady-state sinusoidal response and phasors Revision: April 18, 2010 215 E Main Suite D Pullman, WA 99163 (509) 334 6306 Voie and Fax Overview In this lab assignment, we will be onerned with the

More information

Multiplication and Division

Multiplication and Division Series E Teaher Multipliation and Division Series E Multipliation and Division Contents Student ook answers 1 Assessment 10 Student progress reord 18 Assessment answers 19 Ojetives 21 Series Author: Niola

More information

Lecture 22: Digital Transmission Fundamentals

Lecture 22: Digital Transmission Fundamentals EE 400: Communiation Networks (0) Ref: A. Leon Garia and I. Widjaja, Communiation Networks, 2 nd Ed. MGraw Hill, 2006 Latest update of this leture was on 30 200 Leture 22: Digital Transmission Fundamentals

More information

t = 0 t = 8 (2 cycles)

t = 0 t = 8 (2 cycles) A omputation-universal two-dimensional 8-state triangular reversible ellular automaton Katsunobu Imai, Kenihi Morita Faulty of Engineering, Hiroshima University, Higashi-Hiroshima 739-8527, Japan fimai,

More information

Not for sale or distribution

Not for sale or distribution . Whole Numbers, Frations, Deimals, and Perentages In this hapter you will learn about: multiplying and dividing negative numbers squares, ubes, and higher powers, and their roots adding and subtrating

More information

The UK Linguistics Olympiad 2017

The UK Linguistics Olympiad 2017 Round 2 Prolem 5. Magi Yup ik Central Alaskan Yup ik elongs to the Eskimo-Aleut language family. It is spoken in western and southwestern Alaska y around 20,000 speakers. Yup ik people have an interesting

More information

CSE231 Spring Updated 04/09/2019 Project 10: Basra - A Fishing Card Game

CSE231 Spring Updated 04/09/2019 Project 10: Basra - A Fishing Card Game CSE231 Spring 2019 Updated 04/09/2019 Project 10: Basra - A Fishing Card Game This assignment is worth 55 points (5.5% of the course grade) and must be completed and turned in before 11:59pm on April 15,

More information

Problem A. Vera and Outfits

Problem A. Vera and Outfits Problem A. Vera and Outfits file: file: Vera owns N tops and N pants. The i-th top and i-th pants have colour i, for 1 i N, where all N colours are different from each other. An outfit consists of one

More information

Reprint from IASTED International Conference on Signal and Image Processing (SIP 99). Nassau, Bahamas, October, 1999.

Reprint from IASTED International Conference on Signal and Image Processing (SIP 99). Nassau, Bahamas, October, 1999. Reprint from IASTED International Conferene on Signal and Image Proessing (SIP 99). Nassau, Bahamas, Otober, 1999. 1 Filter Networks Mats Andersson Johan Wiklund Hans Knutsson Computer Vision Laboratory,

More information

Performance Study on Multimedia Fingerprinting Employing Traceability Codes

Performance Study on Multimedia Fingerprinting Employing Traceability Codes Performane Study on Multimedia Fingerprinting Employing Traeability Codes Shan He and Min Wu University of Maryland, College Park, U.S.A. Abstrat. Digital fingerprinting is a tool to protet multimedia

More information

CS 591 S1 Midterm Exam Solution

CS 591 S1 Midterm Exam Solution Name: CS 591 S1 Midterm Exam Solution Spring 2016 You must complete 3 of problems 1 4, and then problem 5 is mandatory. Each problem is worth 25 points. Please leave blank, or draw an X through, or write

More information

Series. Teacher. Numbers

Series. Teacher. Numbers Series B Teaher Numers Series B Numers Contents Stuent ook answers Assessment 79 Stuent progress reor 3 Assessment answers 4 Ojetives 4 6 Series Author: Rahel Flenley Copyright Series PB B Numers Series

More information

Numbers and number relationships LO1

Numbers and number relationships LO1 Numbers and number relationships LO Below is an overview of the work overed in this setion. Numbers and alulating UNIT Types of number page 2 Signifiant figures, deimal plaes and rounding page 4 Approximation

More information

Midterm Examination. CSCI 561: Artificial Intelligence

Midterm Examination. CSCI 561: Artificial Intelligence Midterm Examination CSCI 561: Artificial Intelligence October 10, 2002 Instructions: 1. Date: 10/10/2002 from 11:00am 12:20 pm 2. Maximum credits/points for this midterm: 100 points (corresponding to 35%

More information

Mathematics Success Grade 8

Mathematics Success Grade 8 T936 Mathematics Success Grade 8 [OBJECTIVE] The student will find the line of best fit for a scatter plot, interpret the equation and y-intercept of the linear representation, and make predictions based

More information

Girls Programming Network. Scissors Paper Rock!

Girls Programming Network. Scissors Paper Rock! Girls Programming Network Scissors Paper Rock! This project was created by GPN Australia for GPN sites all around Australia! This workbook and related materials were created by tutors at: Sydney, Canberra

More information

N1 End-of-unit Test 2

N1 End-of-unit Test 2 N End-of-unit Test 2 a Draw a irle around all the numers that divide y with no remainder. 20 2 0 Draw a irle around all the numers that divide y with no remainder. 20 2 0 Draw a irle around all the numers

More information

Math 3012 Applied Combinatorics Lecture 2

Math 3012 Applied Combinatorics Lecture 2 August 20, 2015 Math 3012 Applied Combinatorics Lecture 2 William T. Trotter trotter@math.gatech.edu The Road Ahead Alert The next two to three lectures will be an integrated approach to material from

More information

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm

CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm CPSC 217 Assignment 3 Due Date: Friday March 30, 2018 at 11:59pm Weight: 8% Individual Work: All assignments in this course are to be completed individually. Students are advised to read the guidelines

More information

Objectives. Presentation Outline. Digital Modulation Lecture 04

Objectives. Presentation Outline. Digital Modulation Lecture 04 Digital Modulation Leture 04 Filters Digital Modulation Tehniques Rihard Harris Objetives To be able to disuss the purpose of filtering and determine the properties of well known filters. You will be able

More information

A Zero-Error Source Coding Solution to the Russian Cards Problem

A Zero-Error Source Coding Solution to the Russian Cards Problem A Zero-Error Soure Coding Solution to the Russian Cards Problem ESTEBAN LANDERRECHE Institute of Logi, Language and Computation January 24, 2017 Abstrat In the Russian Cards problem, Alie wants to ommuniate

More information

MICROWAVES Introduction to Laboratory Classes

MICROWAVES Introduction to Laboratory Classes MEEC, 1 st semester 2011/2012 DEEC MICROWAVES Introdution to Laboratory Classes Custódio Peixeiro Laboratory Classes 4 Sessions T1 Contat with a mirowave benh T2 Mathing on an impedane load T4 Measurement

More information

EE140 Introduction to Communication Systems Lecture 7

EE140 Introduction to Communication Systems Lecture 7 3/4/08 EE40 Introdution to Communiation Systems Leture 7 Instrutor: Prof. Xiliang Luo ShanghaiTeh University, Spring 08 Arhiteture of a (Digital) Communiation System Transmitter Soure A/D onverter Soure

More information

Performance of Random Contention PRMA: A Protocol for Fixed Wireless Access

Performance of Random Contention PRMA: A Protocol for Fixed Wireless Access Int. J. Communiations, Network and System Sienes, 2011, 4, 417-423 doi:10.4236/ijns.2011.47049 Published Online July 2011 (http://www.sirp.org/journal/ijns) Performane of Random Contention PRMA: A Protool

More information

The Implement of Hydraulic Control System for Large- Scale Railway Maintenance Equipment Based on PLC

The Implement of Hydraulic Control System for Large- Scale Railway Maintenance Equipment Based on PLC Sensors & Transduers 2014 by IFSA Publishing, S. L. http://www.sensorsportal.om The Implement of Hydrauli Control System for Large- Sale Railway Maintenane Equipment Based on PLC Junfu YU, * Hairui WANG

More information

Wang, October 2016 Page 1 of 5. Math 150, Fall 2015 Exam 2 Form A Multiple Choice Sections 3A-5A

Wang, October 2016 Page 1 of 5. Math 150, Fall 2015 Exam 2 Form A Multiple Choice Sections 3A-5A Wang, October 2016 Page 1 of 5 Math 150, Fall 2015 Exam 2 Form A Multiple Choice Sections 3A-5A Last Name: First Name: Section Number: Student ID number: Directions: 1. No calculators, cell phones, or

More information

An Acquisition Method Using a Code-Orthogonalizing Filter in UWB-IR Multiple Access

An Acquisition Method Using a Code-Orthogonalizing Filter in UWB-IR Multiple Access 6 IEEE Ninth International Symposium on Spread Spetrum Tehniques and Appliations An Aquisition Method Using a Code-Orthogonalizing Filter in UWB-IR Multiple Aess Shin ihi TACHIKAWA Nagaoka University of

More information

EFFICIENT IIR NOTCH FILTER DESIGN VIA MULTIRATE FILTERING TARGETED AT HARMONIC DISTURBANCE REJECTION

EFFICIENT IIR NOTCH FILTER DESIGN VIA MULTIRATE FILTERING TARGETED AT HARMONIC DISTURBANCE REJECTION EFFICIENT IIR NOTCH FILTER DESIGN VIA MULTIRATE FILTERING TARGETED AT HARMONIC DISTURBANCE REJECTION Control Systems Tehnology group Tehnishe Universiteit Eindhoven Eindhoven, The Netherlands Dennis Bruijnen,

More information

In this project you will learn how to write a Python program telling people all about you. Type the following into the window that appears:

In this project you will learn how to write a Python program telling people all about you. Type the following into the window that appears: About Me Introduction: In this project you will learn how to write a Python program telling people all about you. Step 1: Saying hello Let s start by writing some text. Activity Checklist Open the blank

More information

CHAPTER 3 BER EVALUATION OF IEEE COMPLIANT WSN

CHAPTER 3 BER EVALUATION OF IEEE COMPLIANT WSN CHAPTER 3 EVALUATIO OF IEEE 8.5.4 COMPLIAT WS 3. OVERVIEW Appliations of Wireless Sensor etworks (WSs) require long system lifetime, and effiient energy usage ([75], [76], [7]). Moreover, appliations an

More information

Windchimes, Hexagons, and Algebra

Windchimes, Hexagons, and Algebra University of Nebraska - Linoln DigitalCommons@University of Nebraska - Linoln ADAPT Lessons: Mathematis Lesson Plans from the ADAPT Program 1996 Windhimes, Hexagons, and Algebra Melvin C. Thornton University

More information

Thevenin Equivalent Circuits: (Material for exam - 3)

Thevenin Equivalent Circuits: (Material for exam - 3) Thevenin Equivalent Circuits: (Material for exam 3) The Thevenin equivalent circuit is a two terminal output circuit that contains only one source called E TH and one series resistors called R TH. This

More information

HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm.

HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm. HW4: The Game of Pig Due date: Tuesday, Mar 15 th at 9pm. Late turn-in deadline is Thursday, Mar 17th at 9pm. 1. Background: Pig is a folk jeopardy dice game described by John Scarne in 1945, and was an

More information

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program.

In this project, you ll learn how to create 2 random teams from a list of players. Start by adding a list of players to your program. Team Chooser Introduction: In this project, you ll learn how to create 2 random teams from a list of players. Step 1: Players Let s start by creating a list of players to choose from. Activity Checklist

More information

Notes on 4-coloring the 17 by 17 grid

Notes on 4-coloring the 17 by 17 grid otes on 4-coloring the 17 by 17 grid lizabeth upin; ekupin@math.rutgers.edu ugust 5, 2009 1 or large color classes, 5 in each row, column color class is large if it contains at least 73 points. We know

More information

HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm.

HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm. HW4: The Game of Pig Due date: Thursday, Oct. 29 th at 9pm. Late turn-in deadline is Tuesday, Nov. 3 rd at 9pm. 1. Background: Pig is a folk jeopardy dice game described by John Scarne in 1945, and was

More information

Turbo-coded Multi-alphabet Binary CPM for Concatenated Continuous Phase Modulation

Turbo-coded Multi-alphabet Binary CPM for Concatenated Continuous Phase Modulation no symbol mapping is required, and also the inner ode an be ombined with the CPE in the trellis oded modulation sense [4]. Simulation shows that the use of non-binary outer enoder an give typially.3db

More information

Version of 7. , using 30 points from 5 rad/s to 5 krad/s. Paste your plot below. Remember to label your plot.

Version of 7. , using 30 points from 5 rad/s to 5 krad/s. Paste your plot below. Remember to label your plot. Version 1.2 1 of 7 Your Name Passive and Ative Filters Date ompleted PELAB MATLAB = 1000 s + 1000, using 30 points from 5 rad/s to 5 krad/s. Paste your plot below. emember to label your plot. 1. reate

More information

In order for metogivebackyour midterms, please form. a line and sort yourselves in alphabetical order, from A

In order for metogivebackyour midterms, please form. a line and sort yourselves in alphabetical order, from A Parallel Bulesort In order for metogiveackyour midterms, please form a line and sort yourselves in alphaetical order, from A to Z. Cominatorial Search We have seen how clever algorithms can reduce sorting

More information

Spring 06 Assignment 2: Constraint Satisfaction Problems

Spring 06 Assignment 2: Constraint Satisfaction Problems 15-381 Spring 06 Assignment 2: Constraint Satisfaction Problems Questions to Vaibhav Mehta(vaibhav@cs.cmu.edu) Out: 2/07/06 Due: 2/21/06 Name: Andrew ID: Please turn in your answers on this assignment

More information

EE (082) Chapter IV: Angle Modulation Lecture 21 Dr. Wajih Abu-Al-Saud

EE (082) Chapter IV: Angle Modulation Lecture 21 Dr. Wajih Abu-Al-Saud EE 70- (08) Chapter IV: Angle Modulation Leture Dr. Wajih Abu-Al-Saud Effet of Non Linearity on AM and FM signals Sometimes, the modulated signal after transmission gets distorted due to non linearities

More information

CMSC 201 Fall 2018 Project 3 Sudoku

CMSC 201 Fall 2018 Project 3 Sudoku CMSC 201 Fall 2018 Project 3 Sudoku Assignment: Project 3 Sudoku Due Date: Design Document: Tuesday, December 4th, 2018 by 8:59:59 PM Project: Tuesday, December 11th, 2018 by 8:59:59 PM Value: 80 points

More information

CSE 231 Spring 2013 Programming Project 03

CSE 231 Spring 2013 Programming Project 03 CSE 231 Spring 2013 Programming Project 03 This assignment is worth 30 points (3.0% of the course grade) and must be completed and turned in before 11:59 on Monday, January 28, 2013. Assignment Overview

More information

Resilience. Being resilient on the other hand, helps a person in many different ways. Such a person:

Resilience. Being resilient on the other hand, helps a person in many different ways. Such a person: Resiliene What is Resiliene? Often, people have a wrong idea of what resiliene is. They think resiliene means that you re unaffeted by the problems of life or you go through life always with a smile on

More information

=, where f is focal length of a lens (positive for convex. Equations: Lens equation

=, where f is focal length of a lens (positive for convex. Equations: Lens equation Physics 1230 Light and Color : Exam #1 Your full name: Last First & middle General information: This exam will be worth 100 points. There are 10 multiple choice questions worth 5 points each (part 1 of

More information

DESIGN AND PERFORMANCE ANALYSIS OF BAND PASS IIR FILTER FOR SONAR APPLICATION

DESIGN AND PERFORMANCE ANALYSIS OF BAND PASS IIR FILTER FOR SONAR APPLICATION International Journal of Emerging Tehnologies and Engineering (IJETE) ISSN: 238 8 ICRTIET-21 Conferene Proeeding, 3 th -31 st August 21 11 DESIGN AND PERFORMANCE ANALYSIS OF BAND PASS IIR FILTER FOR SONAR

More information

Clever Hangman. CompSci 101. April 16, 2013

Clever Hangman. CompSci 101. April 16, 2013 Clever Hangman CompSci 101 April 16, 2013 1 1 Introduction/Goals The goal of this assignment is to write a program that implements a cheating variant of the well known Hangman game on the python terminal.

More information

Effect of Pulse Shaping on Autocorrelation Function of Barker and Frank Phase Codes

Effect of Pulse Shaping on Autocorrelation Function of Barker and Frank Phase Codes Columbia International Publishing Journal of Advaned Eletrial and Computer Engineering Researh Artile Effet of Pulse Shaping on Autoorrelation Funtion of Barker and Frank Phase Codes Praveen Ranganath

More information

Power Budgeted Packet Scheduling for Wireless Multimedia

Power Budgeted Packet Scheduling for Wireless Multimedia Power Budgeted Paket Sheduling for Wireless Multimedia Praveen Bommannavar Management Siene and Engineering Stanford University Stanford, CA 94305 USA bommanna@stanford.edu Niholas Bambos Eletrial Engineering

More information

Homework: Please number questions as numbered on assignment, and turn in solution pages in order.

Homework: Please number questions as numbered on assignment, and turn in solution pages in order. ECE 5325/6325: Wireless Communiation Systems Leture Notes, Spring 2010 Leture 6 Today: (1) Refletion (2) Two-ray model (3) Cellular Large Sale Path Loss Models Reading for today s leture: 4.5, 4.6, 4.10.

More information

CPSC 217 Assignment 3

CPSC 217 Assignment 3 CPSC 217 Assignment 3 Due: Friday November 24, 2017 at 11:55pm Weight: 7% Sample Solution Length: Less than 100 lines, including blank lines and some comments (not including the provided code) Individual

More information

Beginning Game Programming, COMI 2040 Lab 6

Beginning Game Programming, COMI 2040 Lab 6 Beginning Game Programming, COMI 2040 Lab 6 Background This lab covers the second part of Chapter 3 of your text and the second half of lecture. Before attempting this lab, you should be familiar with

More information

LING 388: Computers and Language. Lecture 10

LING 388: Computers and Language. Lecture 10 LING 388: Computers and Language Lecture 10 Administrivia Homework 4 graded Thanks to Colton Flowers for Python exercises for the last two weeks! Homework 4 Review Quick Homework 5 Floating point representation

More information

CPCS 222 Discrete Structures I Counting

CPCS 222 Discrete Structures I Counting King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222 Discrete Structures I Counting Dr. Eng. Farag Elnagahy farahelnagahy@hotmail.com Office Phone: 67967 The Basics of counting

More information

Guide 1. User Guide. window. program.

Guide 1. User Guide. window. program. Guide 1 Olympus BX53 Digital Mirosope User Guide A. System Start up. 1. Sign into the log ook on the desk (start/end time). 2. Turn on (or wake up) the omputer and selet USER and enter the password on

More information

Unit 1: Free time Focus on reading: skimming and scanning

Unit 1: Free time Focus on reading: skimming and scanning Unit 1: Free time Fous on reading: skimming and sanning Learning objetives In this unit you will: wath a video of students talking about their free time, and disuss what they say read an advertisement

More information

Location Fingerprint Positioning Based on Interval-valued Data FCM Algorithm

Location Fingerprint Positioning Based on Interval-valued Data FCM Algorithm Available online at www.sienediret.om Physis Proedia 5 (01 ) 1939 1946 01 International Conferene on Solid State Devies and Materials Siene Loation Fingerprint Positioning Based on Interval-valued Data

More information

Lecture 13 Register Allocation: Coalescing

Lecture 13 Register Allocation: Coalescing Lecture 13 Register llocation: Coalescing I. Motivation II. Coalescing Overview III. lgorithms: Simple & Safe lgorithm riggs lgorithm George s lgorithm Phillip. Gibbons 15-745: Register Coalescing 1 Review:

More information

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18

CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2. Assigned: Monday, February 6 Due: Saturday, February 18 CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2 Assigned: Monday, February 6 Due: Saturday, February 18 Hand-In Instructions This assignment includes written problems and programming

More information

CS 51 Homework Laboratory # 7

CS 51 Homework Laboratory # 7 CS 51 Homework Laboratory # 7 Recursion Practice Due: by 11 p.m. on Monday evening, but hopefully will be turned in by the end of the lab period. Objective: To gain experience using recursion. Recursive

More information

Make sure your name and FSUID are in a comment at the top of the file.

Make sure your name and FSUID are in a comment at the top of the file. Midterm Assignment Due July 6, 2016 Submissions are due by 11:59PM on the specified due date. Submissions may be made on the Blackboard course site under the Assignments tab. Late submissions will NOT

More information

Spring 06 Assignment 2: Constraint Satisfaction Problems

Spring 06 Assignment 2: Constraint Satisfaction Problems 15-381 Spring 06 Assignment 2: Constraint Satisfaction Problems Questions to Vaibhav Mehta(vaibhav@cs.cmu.edu) Out: 2/07/06 Due: 2/21/06 Name: Andrew ID: Please turn in your answers on this assignment

More information

INSTALLATION GUIDE. Perfect PANELLING c

INSTALLATION GUIDE. Perfect PANELLING c INSTALLATION GUIDE 01522 123456 Perfet PERFECT The sole supplier of Perfet Panelling wall panels, shower panels and wet-room boards, we supply a omplete bathroom and wet-room solution to low maintenane

More information

RADAR TARGET RECOGNITION BASED ON PARAMETERIZED HIGH RESOLUTION RANGE PROFILES

RADAR TARGET RECOGNITION BASED ON PARAMETERIZED HIGH RESOLUTION RANGE PROFILES RADAR TARGET RECOGNITION BASED ON PARAMETERIZED HIGH RESOLUTION RANGE PROFILES XUEJUN LIAO and ZHENG BAO Key Lab. For Radar Signal Proessing Xidian University, Xi an 710071, P. R. China E-mail : xjliao@rsp.xidian.edu.n

More information

Designing Information Devices and Systems I Fall 2018 Homework 10

Designing Information Devices and Systems I Fall 2018 Homework 10 Last Updated: 2018-10-27 04:00 1 EECS 16A Designing Information Devices and Systems I Fall 2018 Homework 10 You should plan to complete this homework by Thursday, November 1st. Everything in this homework

More information

4.2 Proving and Applying

4.2 Proving and Applying YOU WILL NEED alulator ruler EXPLORE 4.2 Proving and Applying the Sine and Cosine Laws for Obtuse Triangles An isoseles obtuse triangle has one angle that measures 120 and one side length that is 5 m.

More information

Key-Words: - Software defined radio, Walsh Hadamard codes, Lattice filter, Matched filter, Autoregressive model, Gauss-Markov process.

Key-Words: - Software defined radio, Walsh Hadamard codes, Lattice filter, Matched filter, Autoregressive model, Gauss-Markov process. G Suhitra, M L Valarmathi A Novel method of Walsh-Hadamard Code Generation using Reonfigurable Lattie filter and its appliation in DS-CDMA system GSUCHITRA, MLVALARMATHI Department of ECE, Department of

More information

CS123. Programming Your Personal Robot. Part 3: Reasoning Under Uncertainty

CS123. Programming Your Personal Robot. Part 3: Reasoning Under Uncertainty CS123 Programming Your Personal Robot Part 3: Reasoning Under Uncertainty Topics For Part 3 3.1 The Robot Programming Problem What is robot programming Challenges Real World vs. Virtual World Mapping and

More information

Writing Equations of Parallel and Perpendicular Lines 4.3. Essential Question How can you recognize lines that are parallel or perpendicular?

Writing Equations of Parallel and Perpendicular Lines 4.3. Essential Question How can you recognize lines that are parallel or perpendicular? . Writing Equations of Parallel and Perpendiular Lines Essential Question How an ou reognize lines that are parallel or perpendiular? Reognizing Parallel Lines Work with a partner. Write eah linear equation

More information

Algorithms and Data Structures CS 372. The Sorting Problem. Insertion Sort - Summary. Merge Sort. Input: Output:

Algorithms and Data Structures CS 372. The Sorting Problem. Insertion Sort - Summary. Merge Sort. Input: Output: Algorithms and Data Structures CS Merge Sort (Based on slides by M. Nicolescu) The Sorting Problem Input: A sequence of n numbers a, a,..., a n Output: A permutation (reordering) a, a,..., a n of the input

More information

NAVAL POSTGRADUATE SCHOOL THESIS

NAVAL POSTGRADUATE SCHOOL THESIS NAVAL POSTGRADUATE SCHOOL MONTEREY, CALFORNA THESS PERFORMANCE ANALYSS OF AN ALTERNATVE LNK-6/JTDS WAVEFORM TRANSMTTED OVER A CHANNEL WTH PULSE-NOSE NTERFERENCE y Cham Kok Kiang Marh 8 Thesis Advisor:

More information

Oracle Turing Machine. Kaixiang Wang

Oracle Turing Machine. Kaixiang Wang Oracle Turing Machine Kaixiang Wang Pre-background: What is Turing machine Oracle Turing Machine Definition Function Complexity Why Oracle Turing Machine is important Application of Oracle Turing Machine

More information

GIS Programming Practicuum

GIS Programming Practicuum New Course for Fall 2009 GIS Programming Practicuum Geo 599 2 credits, Monday 4:00-5:20 CRN: 18970 Using Python scripting with ArcGIS Python scripting is a powerful tool for automating many geoprocessing

More information

School Based Projects

School Based Projects Welcome to the Week One lesson. School Based Projects Who is this lesson for? If you're a high school, university or college student, or you're taking a well defined course, maybe you're going to your

More information

UNIT 9B Randomness in Computa5on: Games with Random Numbers Principles of Compu5ng, Carnegie Mellon University - CORTINA

UNIT 9B Randomness in Computa5on: Games with Random Numbers Principles of Compu5ng, Carnegie Mellon University - CORTINA UNIT 9B Randomness in Computa5on: Games with Random Numbers 1 Rolling a die from random import randint def roll(): return randint(0,15110) % 6 + 1 OR def roll(): return randint(1,6) 2 1 Another die def

More information

Layered Space-Time Codes for Wireless Communications Using Multiple Transmit Antennas

Layered Space-Time Codes for Wireless Communications Using Multiple Transmit Antennas Layered Spae-Time Codes for Wireless Communiations Using Multiple Transmit Antennas Da-shan Shiu and Joseph M. Kahn University of California at Bereley Abstrat Multiple-antenna systems provide very high

More information

CS 3233 Discrete Mathematical Structure Midterm 2 Exam Solution Tuesday, April 17, :30 1:45 pm. Last Name: First Name: Student ID:

CS 3233 Discrete Mathematical Structure Midterm 2 Exam Solution Tuesday, April 17, :30 1:45 pm. Last Name: First Name: Student ID: CS Discrete Mathematical Structure Midterm Exam Solution Tuesday, April 17, 007 1:0 1:4 pm Last Name: First Name: Student ID: Problem No. Points Score 1 10 10 10 4 1 10 6 10 7 1 Total 80 1 This is a closed

More information

Multifunction Electric. Power Meter (LCD type J) USER S MANUAL

Multifunction Electric. Power Meter (LCD type J) USER S MANUAL Ordering statement when Signing the ontrat, please delare suh information as produt model, input signal, wiring mode and so on. The series of produts have a default prefatory setting and without standard

More information

New Approach in Gate-Level Glitch Modelling *

New Approach in Gate-Level Glitch Modelling * New Approah in Gate-Level Glith Modelling * Dirk Rae Wolfgang Neel Carl von Ossietzky University Oldenurg OFFIS FB 1 Department of Computer Siene Esherweg 2 D-26111 Oldenurg, Germany D-26121 Oldenurg,

More information

A Robust Image Restoration by Using Dark channel Removal Method

A Robust Image Restoration by Using Dark channel Removal Method Volume 6, Issue 3, Marh 2017, ISSN: 2278 1323 A Robust Image Restoration by Using Dark hannel Removal Method Ankit Jain 1 (MTeh. sholar), Prof. Mahima Jain 2 Department Of Computer Siene And Engineering,

More information

Homework Assignment #2

Homework Assignment #2 CS 540-2: Introduction to Artificial Intelligence Homework Assignment #2 Assigned: Thursday, February 15 Due: Sunday, February 25 Hand-in Instructions This homework assignment includes two written problems

More information

Enumerative Combinatoric Algorithms. Gray code

Enumerative Combinatoric Algorithms. Gray code Enumerative Combinatoric Algorithms Gray code Oswin Aichholzer (slides TH): Enumerative Combinatoric Algorithms, 27 Standard binary code: Ex, 3 bits: b = b = b = 2 b = 3 b = 4 b = 5 b = 6 b = 7 Binary

More information

CS 32 Puzzles, Games & Algorithms Fall 2013

CS 32 Puzzles, Games & Algorithms Fall 2013 CS 32 Puzzles, Games & Algorithms Fall 2013 Study Guide & Scavenger Hunt #2 November 10, 2014 These problems are chosen to help prepare you for the second midterm exam, scheduled for Friday, November 14,

More information

. MA111: Contemporary mathematics. Jack Schmidt. November 9, 2012

. MA111: Contemporary mathematics. Jack Schmidt. November 9, 2012 .. MA111: Contemporary mathematics Jack Schmidt University of Kentucky November 9, 2012 Entrance Slip (due 5 min past the hour): The Archduke of Lexington passed away, leaving his two children Duchess

More information

The following may be of use in this test: 5! = Two rows of Pascal s triangle are:

The following may be of use in this test: 5! = Two rows of Pascal s triangle are: Topi 8: Proaility Pratie S Short answer tehnology- free The following may e of use in this test: 5! = 120 1 5 10 10 5 1 Two rows of Pasal s triangle are: Name: 1 6 15 20 15 6 1 1 ontainer holds 20 irular

More information

CSE 231 Fall 2012 Programming Project 8

CSE 231 Fall 2012 Programming Project 8 CSE 231 Fall 2012 Programming Project 8 Assignment Overview This assignment will give you more experience on the use of classes. It is worth 50 points (5.0% of the course grade) and must be completed and

More information

Game Artificial Intelligence ( CS 4731/7632 )

Game Artificial Intelligence ( CS 4731/7632 ) Game Artificial Intelligence ( CS 4731/7632 ) Instructor: Stephen Lee-Urban http://www.cc.gatech.edu/~surban6/2018-gameai/ (soon) Piazza T-square What s this all about? Industry standard approaches to

More information

DSP First Lab 05: FM Synthesis for Musical Instruments - Bells and Clarinets

DSP First Lab 05: FM Synthesis for Musical Instruments - Bells and Clarinets DSP First Lab 05: FM Synthesis for Musial Instruments - Bells and Clarinets Pre-Lab and Warm-Up: You should read at least the Pre-Lab and Warm-up setions of this lab assignment and go over all exerises

More information

Freezing Simulates Non-Freezing Tile Automata

Freezing Simulates Non-Freezing Tile Automata Freezing Simulates Non-Freezing Tile Automata ameron halk 1, Austin Luhsinger 2, Eri Martinez 2, Robert Shweller 2, Andrew Winslow 2, and Tim Wylie 2 1 Department of Eletrial and omputer Engineering, University

More information

A focal nugget and accent drops of red coral are a bold splash of color. The background necklace features a more subtle palette of turquoise beads.

A focal nugget and accent drops of red coral are a bold splash of color. The background necklace features a more subtle palette of turquoise beads. A foal nugget and aent drops of red oral are a bold splash of olor. The bakground neklae features a more subtle palette of turquoise beads. WIREWORK Falling leaves Form an asymmetrial wire neklae in the

More information

De Anza College Department of Engineering Engr 37-Intorduction to Circuit Analysis

De Anza College Department of Engineering Engr 37-Intorduction to Circuit Analysis De Anza College Department of Engineering Engr 37-Intorduction to Circuit Analysis Spring 2017 Lec: Mon to Thurs 8:15 am 9:20 am S48 Office Hours: Thursday7:15 am to 8:15 am S48 Manizheh Zand email: zandmanizheh@fhda.edu

More information

IMAGE RECONSTRUCTION FROM OMNI-DIRECTIONAL CAMERA Kai Guo and Zhuang Li

IMAGE RECONSTRUCTION FROM OMNI-DIRECTIONAL CAMERA Kai Guo and Zhuang Li IMAGE RECONSTRUCTION FROM OMNI-DIRECTIONAL CAMERA Kai Guo and Zhuang Li De 15, 2007 Boston University Department of Eletrial and Computer Engineering Tehnial report No. ECE-2007-06 BOSTON UNIVERSITY IMAGE

More information

Series. Teacher. Numbers

Series. Teacher. Numbers Series C Teaher Numers Series C Numers Contents Stuent ook answers Assessment 79 Stuent progress reor Assessment answers 3 Ojetives 5 Series Author: Rahel Flenley Copyright Series C Numers Page a Page

More information

Due: Sunday 13 November by 10:59pm Worth: 8%

Due: Sunday 13 November by 10:59pm Worth: 8% CSC 8 HF Project # General Instructions Fall Due: Sunday Novemer y :9pm Worth: 8% Sumitting your project You must hand in your work electronically, using the MarkUs system. Log in to https://markus.teach.cs.toronto.edu/csc8--9/en/main

More information

This assignment is worth 75 points and is due on the crashwhite.polytechnic.org server at 23:59:59 on the date given in class.

This assignment is worth 75 points and is due on the crashwhite.polytechnic.org server at 23:59:59 on the date given in class. Computer Science Programming Project Game of Life ASSIGNMENT OVERVIEW In this assignment you ll be creating a program called game_of_life.py, which will allow the user to run a text-based or graphics-based

More information

Texas Instruments Analog Design Contest

Texas Instruments Analog Design Contest Texas Instruments Analog Design Contest Oregon State University Group 23 DL Paul Filithkin, Kevin Kemper, Mohsen Nasroullahi 1. Written desription of the projet Imagine a situation where a roboti limb

More information

Time Reversal Synthetic Aperture Radar Imaging In Multipath

Time Reversal Synthetic Aperture Radar Imaging In Multipath Time Reversal Syntheti Aperture Radar Imaging In Multipath Yuanwei Jin, José M.F. Moura, and Niholas O Donoughue Eletrial and Computer Engineering Carnegie Mellon University Pittsburgh, PA 1513 Mihael

More information

You Know More Than You Think ;) 3/6/18 Matni, CS8, Wi18 1

You Know More Than You Think ;) 3/6/18 Matni, CS8, Wi18 1 You Know More Than You Think ;) 3/6/18 Matni, CS8, Wi18 1 Digital Images in Python While Loops CS 8: Introduction to Computer Science, Winter 2018 Lecture #13 Ziad Matni Dept. of Computer Science, UCSB

More information

Extended Introduction to Computer Science CS1001.py

Extended Introduction to Computer Science CS1001.py Extended Introduction to Computer Science CS1001.py Lecture 13: Recursion (4) - Hanoi Towers, Munch! Instructors: Daniel Deutch, Amir Rubinstein, Teaching Assistants: Amir Gilad, Michal Kleinbort School

More information

Research on Blanket Jamming to Beidou Navigation Signals Based on BOC Modulation

Research on Blanket Jamming to Beidou Navigation Signals Based on BOC Modulation Int. J. Communiations, Network and System Sienes, 6, 9, 35-44 Published Online May 6 in SiRes. http://www.sirp.org/ournal/ins http://dx.doi.org/.436/ins.6.95 Researh on Blanket Jamming to Beidou Navigation

More information