Mathematics for Computer Science

Size: px
Start display at page:

Download "Mathematics for Computer Science"

Transcription

1 Mathematics for Computer Science Lecture 3: Turing Machines Areces, Blackburn and Figueira TALARIS team INRIA Nancy Grand Est Contact: Course website:

2 Today s lecture The main purpose of today s lecture is to introduce Turing machines, a simple, abstract and (as we shall see) general model of computation. But although Turing machines are abstract, they reflect certain very concrete ideas about what it is to compute. Indeed, such ideas have long inspired others to create machines of various kinds to compute, as we shall now see. One of the most important skills you will learn today is how to write simple Turing machines. This skill is important for at least two reasons. First, it will teach you some basic programming skills. Second, it will help you to understand and appreciate just how simple and general Turing s model of computation is.

3 Roman abacus It is unclear whether the Roman abacus influenced the Chinese abacus or vice-versa (Rome and China were in contact via trade at the time). What is clear is that the Roman abacus was far slower than the Chinese one and much faster than hand calculation with Roman numerals.

4 Chinese Abacus above (Japanese below) The Chinese abacus was first mentioned around 190 AD. They became widely used around 1200 AD. Note the two rows of count 5 beads.

5 Japanese Abacus (Soroban) The Japanese adopted the abacus from the Chinese around the fifteenth or sixteenth century. They dropped one of the row of the count 5 beads, yielding the modern Soroban abacus, still used in modern Japan.

6 Effectiveness of the abacus On November 12, 1946, a contest was held in Tokyo to compare the Japanese soroban with an electric calculator. The soroban was operated by Kiyoshi Matsuzaki, the calculator by US Army Private Thomas Nathan Wood. The contest compared speed and accuracy for all four basic arithmetic operations (that is, addition, subtraction, division and multiplication) and one problem combined all four operations. The soroban won 4 to 1 (the electric calculator won the multiplication context). This contest formed the basis for a science fiction short story by Arthur C. Clarke in which teams of abacus operators successfully take over the functions of a broken computer on a spacecraft!

7 Inca abacus Inca ( ) calculator. There are several ideas about how it worked, but no real certainty.

8 Gottfried Leibniz Gottfried Leibniz ( ), philosopher, inventor of calculus, pioneer of symbolic logic, and general all-round genius, was also interested in the idea of mechanical calculation. As he put it: It is unworthy of excellent men to lose hours like slaves in the labor of calculation, which could be safely relegated to anyone else if machines were used.

9 Stepped Reckoner (I) In 1671, Leibniz started working on a machine, the Stepped Reckoner, that could perform the four basic arithmetical operations. He gradually improved over the years. The idea attracted a lot of interest, and led to Leibniz being elected a member of the Royal Society in 1673.

10 Stepped Reckoner (II) A number of versions of the machine were constructed in Leibniz s lifetime by a Hanover-based craftsman. However the Leibniz s ideas pushed the technology of the time to its limits: the machine was prone to jamming and malfunctioning.

11 The Turk The idea of computing over other domains than numbers also seems to have been in the air. Chess was an obvious choice. Between , the Turk, a mechanical chess player, took on all comers. Famous victims include Napoleon Bonaparte and Benjamin Franklin. In later incarnations it had a voice box, and uttered the word Check!. The Turk was destroyed by fire in Sadly, three years later, it was revealed to have been a fake; a human being concealed inside operated it.

12 Charles Babbage English pioneer of computer science and sadly, too far in advance of his time to realise his ideas,

13 A forerunner of more than mere computer science...! Here s what he wrote to Tennyson (the English poet) about Tennyson s poem The vision of sin poem: In your otherwise beautiful poem, one verse reads, Every moment dies a man, Every moment one is born... If this was true, the population of the world would be at a standstill. In truth, the rate of birth is slightly in excess of that of death. I would suggest: Every moment dies a man, Every moment 1 1/16 is born. Strictly speaking, the actual figure is so long I cannot get it into a line, but I believe the figure 1 1/16 will be sufficiently accurate for poetry. Geeks rule!

14 The Difference Engine (I) Babbage s first project was the Difference Engine. He conceived of it as a special-purpose mechanical digital calculator, designed to tabulate polynomial functions; he proposed it in an 1822 paper to the Royal Astronomical Society, entitled Note on the application of machinery to the computation of very big mathematical tables. Such tables were of immense important at the time, for example for navigation and gunnery.

15 The Difference Engine (II) This Difference Engine was designed to use the ordinary base 10 number system (that is, ordinary decimal arithmetic) and to be powered by turning a handle. The British government initially financed the project, but stopped when Babbage repeatedly asked for more money when he had made no apparent progress. The Difference Engine was never finished, but was later reconstructed by the Science Museum in London (the picture on the previous slide is of this reconstruction). The reason for Babbage s failure to finish the machine was his all-consuming enthusiasm for a more general project (closer to a modern computer) that he called the Analytical Engine.

16 The Analytical Engine The analytical engine was to have been powered by a steam engine; if it had been built, would have been over 30 metres long and 10 metres wide. The input was to have been via punched cards (such cards were already being used in mechanical looms). There were to be a variety of possible outputs: a printer, a curve plotter, a bell(!) and a card punch. It was designed for ordinary base 10 arithmetic. It could be programmed. Indeed, the Analytical Engine seems to have been comparable in power with the programmable calculators marketed by Texas Instruments and Hewlett Packard in the 1980s.

17 The Mill of the Analytical Engine This is the only part of the Analytical Engine which was ever built. Called the mill, which did the four basic arithmetic operations, comparisons, and square roots.

18 Ada Lovelace the first programmer Ada Lovelace ( ), daughter of Lord Byron, was a was a passionate advocate for the analytical engine and the potential of computing. A mathematician, in 1842 she translated an Italian treatise on the Analytical Engine into English, and added a program for calculating Bernoulli numbers. Babbage called her The enchantress of numbers. The programming language Ada is named after her.

19 Practical computing Leibniz s Stepped Reckoner and Babbage s Analytical Engine were visionary and outstripped the technology of their time. But much existing technology (for example, the punched card) certainly was ready to be exploited for more down-to-earth computing tasks. One such task was tabulation counting and classifying large amounts of data for statistical purposes. The need for speedy methods of doing this was clear by the end of the 19th century. Hollerith designed and built a number of machines for this purposes, building on and extending existing technology.

20 Hollerith s fundamental patent The herein-described method of compiling statistics, which consists in recording separate statistical items pertaining to the individual by holes or combinations of holes punched in sheets of electrically non-conducting material, and bearing a specific relation to each other and to a standard, and then counting or tallying such statistical items separately or in combination by means of mechanical counters operated by electro-magnets the circuits through which are controlled by the perforated sheets, substantially as and for the purpose set forth.

21 The Hollerith Machine Hollerith s company, the Tabulating Machine Company, built and leased a number of such machines to the US Government. His company was one four that eventually merged to form IBM.

22 Columbia Machine Such work led eventually to other impressive technical developments. For example, the Columbia machine combined fast tabulation with the ability to perform arithmetic calculations.

23 Journalistic description of the Columbia Machine Indeed, the Columbia-machine seemed like science fiction to some writers at the time. But behind the journalistic exaggerations, it was clear that technology needed to exploit the theoretical work of Turing and his colleagues was almost in place.

24 How we calculate So what is a Turing machine, and how did the concept arise? Turing thought hard about what was involved in carrying out simple calculations, such as adding a column of numbers, or multiplying two large numbers together. He saw clearly that when performing such calculations, in essence we are carrying out simple algorithms. That is, we are following, step by step, a series of rules. For example, when adding two columns of numbers we learn to add them from the rightmost digit to leftmost, and to carry numbers. When multiplying two numbers greater than 10 we learn to do it digit by digit, to add in extra zeroes, and to obtain the final result by addition.

25 Algorithms are everywhere Following the steps in a recipe book, or following a knitting pattern, are two good examples of everyday algorithms. Indeed, much of the mathematics we learn in school isn t what a mathematician would regard as mathematics at all; rather, it s learning certain algorithms for certain tasks. Early in school we learn algorithms for carrying out addition, multiplication, division, or finding greatest common divisors (using the famous Euclidean algorithm); only much later, probably at university, do we learn the deeper concepts of number theory. Later in school we may learn simple calculus. But at school this is mostly about learning simple algorithms for differentiating and integrating simple functions such as polynomials; only later (at university) so we learn the underlying ideas of continuity, differentiability, and so on.

26 From algorithms to machines The idea of an algorithm, the step by step following of a sequence of precise rules, is one of the fundamental ideas of computer science. But how are algorithms actually realised in the physical world? How can we design machines to really carry them out? Turing answered this question by thinking carefully about what is involved when a person carries out calculations.

27 Turing s analysis Turing saw that performing an algorithm required some sort of workspace a place to write the input, the output, and the intermediate results. (For a human, such a workspace might be a sheet of paper.) He also saw that there needed to be clearly-defined finite number of simple operations that could be performed; for example, how to add two digits, or how to multiply two digits. Last but not least, he abstracted the notion of state. Internal states are the simple model of mind that lie behind Turing s design.

28 Turing machines Putting all together, a Turing machine has three components: An unending tape divided into squares. The tape is the workspace. Input, output, and intermediate calculations are written on the tape. We think of the tape as infinite both to the right and to the left (if you prefer: imagine that we always have the possibility of adding more squares, at either end, should we need them). There is a read/write head (or simple, head) which moves along the tape. The head is restricted in its movement; it can only move one square left or right at a time. The head can read the symbol (if any) that is written on the tape, and write one of a finite number of symbols on the tape. A Turing machine can be in one of a fixed finite number of internal states. The ability of a Turing machine to enter different internal states is the real key to its power.

29 Writing Turing machines A Turing machine starts by scanning the input symbols which are written on the tape. We say a Turing machine is in standard configuration if it is scanning the leftmost symbol of all the input symbols. We write a Turing machine by saying what action the Turing machine is to perform when scanning a certain symbol in a certain state, and by saying what state it goes into after it has performed that action.

30 What actions can Turing machines perform? There are three basic things a Turing machine can do: it can move one square to the left, move one square to the right, or write a new symbol on the square it is reading (overwriting what is already there; note that we regard the blank square as a symbol). We also need to say what state the machine moves into after performing the action. This might be the state it was already in, or a new state. A Turing machine halts if no action is defined for the state it is in. Such a state is called a final state, or a halting state. If a Turing machine halts scanning the leftmost symbol of its answer, we say it halts in standard configuration.

31 An example Turing machine... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3 Here s an example machine. We see a blank tape, the read/write head (the red arrow), and the table which says what the machine is to do when in a given state scanning a given symbol. Note: to prevent ambiguity, in the table we represent the symbol blank square by #.

32 What does this machine do? This machine is designed to start in standard configuration scanning a tape containing a mixture of the symbols $ and x. The head moves along the tape from left to right, and changes every x it finds to a $ (that is, it overwrites every x with a $ symbol). When it reaches the first blank square to the right of the input, it moves left all the way back to the first blank to the left of the input. It then moves one square to the right (so it is scanning the left most dollar symbol) and halts in standard configuration. Fine but how exactly does it do this? Let s work through very carefully and see...

33 Turn Xs to Dollars!... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3 Here s the machine again...

34 Example input... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3 And here s some typical input. What happens next? Well, let s assume we start in State 1

35 Configuration 1... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

36 What to do...?... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

37 There!... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

38 Configuration 2... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

39 What to do...?... $ x $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

40 There...!... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

41 Configuration 3... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

42 What to do...?... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

43 There!... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

44 Configuration 4... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

45 What to do...?... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

46 There!... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

47 Configuration 5... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

48 What to do...?... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

49 There!... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

50 Configuration 6... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

51 What to do...?... $ $ $ $ x... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

52 There... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

53 Configuration 7... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

54 What to do...?... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

55 There!... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

56 Configuration 8... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

57 What to do...?... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

58 There!... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

59 Configuration 9... $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

60 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

61 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

62 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

63 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

64 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3

65 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3 Halt! No Action defined for State 3!

66 Configuration $ $ $ $ $... 1 $ R 1 1 x $ 1 1 # L 2 2 $ L 2 2 # R 3 Halt! No Action defined for State 3!

67 Summing up As promised, the machine started in standard configuration, converted all x symbols to $ symbols, and halted in standard configuration. A simple machine, but one which demonstrated the basic symbol manipulation abilities of Turing machines. Study it well. But the best way to learn to write Turing machines is to study as many of them as possible. So lets look at another example.

68 Turing machines for arithmetic functions We have seen examples of the sort of devices (abacuses and so on) that people have devised during history to calculate arithmetic functions (that is, addition, multiplication, division and so on). Unsurprisingly, Turing machines can calculate such functions too. Let s look at an example: a Turing machine for addition.

69 Representing numbers The first thing to decide is how to represent numbers. Now we could use ordinary decimal notation, or we could use binary notation, but it will make things simpler if we start by using monadic notation. What is monadic notation? Simple! the numeral 1 is represented by 1, 2 is represented by 11, 3 is represented by 111, 4 by 1111, 5 by 11111, and so on (we won t bother to introduce a convention for handling 0, though it is easy to do so). This notation is makes it easy to do addition. For example, is which is just That is, we really just need to stick the two blocks of one representing the input together! How can we devise a Turing machine for doing this?

70 The basic idea We re going to present a Turing machine that will take as input two blocks of 1s (separated by a blank square). The machine will start in standard configuration. It will then stick the two blocks together (thus performing the monadic addition). Furthermore, we shall design the machine is such a way that it halts in standard configuration. Why bother starting and stopping in standard configuration? It may not seem like a very important concept. But is is. We shall see why in the following lecture.

71 The algorithm in more detail Begin by scanning the leftmost 1. Move right, and keep doing so until you get to the blank that divides the two blocks on input ones. When you find the blank separating the two blocks of input, write 1 in the blank, and switch into a new state. Keep moving right until you come to the blank at the right-hand-end of the (now continuous) block of 1s. Move one space left, switch state, and change the 1 to a blank (now the correct number of 1s are on the tape). Move left, change state and keep moving left until you come to the blank at the left-hand-end of the block of 1s. Move right one space and halt. And here s a machine that realizes this algorithm...

72 Monadic addition R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

73 Example input R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

74 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

75 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

76 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

77 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5 We stick the blocks together by changing the blank between them to a 1. This means we have one 1 too many. So we will need to remember to delete rightmost 1.

78 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

79 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

80 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

81 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

82 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

83 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5 There! We changed the rightmost 1 to a blank. So we have the right number of symbols on the tape. The only thing left to do is get the head back to the leftmost 1 symbol.

84 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

85 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

86 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

87 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

88 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

89 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

90 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5

91 Configuration R 1 1 # R 2 2 # L # 3 3 # L L 4 4 # R 5 Halt! State 5 is a final state!

92 Remarks This machine clearly does perform monadic addition. Thus we have seen our first example of a Turing machine which calculates an arithmetic function. Our use of monadic notation for number made addition easy but it makes other operations quite involved. For example, monadic multiplication takes a little more thought. Writing a Turing machine for monadic multiplication is one of the problems on Worksheet 3. It is perhaps worth emphasizing that we used monadic addition because it gave us a simple way to show how arithmetic functions could be implemented. But we weren t forced to do so! We could have defined addition in decimal or binary. And indeed, you ll find such exercises on Worksheet 3.

93 A decision problem Our first Turing machine (the x to $ converter) performed a typical computer science problem, namely converting one kind of symbol to another. Our second Turing machine, the monadic addition machine, carried out a typical mathematical task. Our third machine is going to carry out a typical logical task it is going to provide a yes/no answer to a question. That is, it is going to implement what logicians call a decision procedure. In particular, the machine is going to decide whether the input number (written in monadic) is odd or even.

94 The Algorithm We start in the initial state reading a 1. Assume that there are two other states: an even state and an odd state. Move right, go into the odd state, and then... Odd state: if you read a blank, write odd and halt. If you read a 1, move right, and go into the even state. Even state: if you read a blank, write even and halt. If you read a 1, move right, and go into the odd state. Just keep flipping between the previous two moves!

95 Odd or even? R 3 2 # even R 3 3 # odd R 2 Here s a machine for the algorithm just described. State 2 is the even state and State 3 is the odd state.

96 Example input R 3 2 # even R 3 3 # odd R 2 And here s some typical (even) input. Ready to go... blah blah blah

97 Configuration R 3 2 # even R 3 3 # odd R 2 We start in State 1. We re reading the first 1, so we have so far seen one 1, an odd number. So we go into the odd state (State 3).

98 Configuration R 3 2 # even R 3 3 # odd R 2 We re in the odd state. But we re reading a 1. So now we have seen an even number of 1s. So we go into the even state (State 2).

99 Configuration R 3 2 # even R 3 3 # odd R 2 We re in the even state. But we re reading a 1. So now we have seen an odd number of 1s. So we go into the odd state (State 3).

100 Configuration R 3 2 # even R 3 3 # odd R 2 We re in the odd state. But we re reading a 1. So now we have seen an even number of 1s. So we go into the even state (State 2).

101 Configuration R 3 2 # even R 3 3 # odd R 2 We re in the even state. But now we are seeing a blank square. So we know that the input was an even number. So we write even on the tape and go into State 4

102 Configuration even R 3 2 # even R 3 3 # odd R 2 And this is where we halt, because State 4 is a final state. blah blah blah

103 Remarks So the machine really does implement the odd/even decision problem. Study this machine carefully, and then do the exercise on Worksheet 3 which asks you to modify it in a certain way.

104 Summary of Lecture 3 Key concepts: We introduced the key concept underlying this course, namely the concept of a Turing machine. Turing machines are abstract machines, nonetheless they are based on an analysis of concrete calculations. Indeed Turing machines are essentially a simple mechanism for realizing algorithms using three fundamental concepts: the tape, some basic operations operations (moving right, moving left, and writing symbols), and internal states.

105 Summary of Lecture 3 continued Key concepts: We examined three Turing machines in detail. The first performed a symbol conversion task: it took in a string of mixed xs and $s, changed all the xs to $s, and halted leaving a string of dollars on the tape. The second performed a typical mathematical task: it calculated values of the addition function. For this task we represented numbers using monadic notation, as this greatly simplified the task. Finally, we introduced the notion of a decision problem, and illustrated this with a machine that could decide whether an input number was odd or even. Note: all three machines are calculating functions think about it.

106 Summary of Lecture 3 continued Key concepts: We also mentioned several times the concept of standard configuration for input and output, though as yet we have not seen why this idea is so important. We will see why next week when we start to talk about to build Turing machines to perform more interesting tasks.

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 1 History of Computers

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 1 History of Computers CSCA0201 FUNDAMENTALS OF COMPUTING Chapter 1 History of Computers 1 Topics 1. Definition of computer 2. Earliest computer 3. Computer History 4. Computer Generations 2 Definition of Computer Computer is

More information

Turing Machines: An Introduction

Turing Machines: An Introduction CIT 596 Theory of Computation 1 We have seen several abstract models of computing devices: Deterministic Finite Automata, Nondeterministic Finite Automata, Nondeterministic Finite Automata with ɛ-transitions,

More information

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material

More information

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012 Binary numbers The reason humans represent numbers using decimal (the ten digits from 0,1,... 9) is that we have ten fingers. There is no other reason than that. There is nothing special otherwise about

More information

Regular Languages and Finite Automata

Regular Languages and Finite Automata Regular Languages and Finite Automata 1 Introduction Hing Leung Department of Computer Science New Mexico State University Sep 16, 2010 In 1943, McCulloch and Pitts [4] published a pioneering work on a

More information

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system

Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter 4 described a mathematical system CHAPTER Number Theory FIGURE FIGURE FIGURE Plus hours Plus hours Plus hours + = + = + = FIGURE. Clock Arithmetic and Modular Systems Clock Arithmetic The introduction to Chapter described a mathematical

More information

Binary Adders: Half Adders and Full Adders

Binary Adders: Half Adders and Full Adders Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order

More information

Science in History: From the Abacus to the Modern Computer Part 1: The Abacus

Science in History: From the Abacus to the Modern Computer Part 1: The Abacus Part 1: The Abacus Even before humans could read or write, they needed to count. First they used their fingers, but when they had to deal with figures over ten, a counting device became necessary. Pebbles

More information

Kapitel 1 Multiplication of Long Integers (Faster than Long Multiplication)

Kapitel 1 Multiplication of Long Integers (Faster than Long Multiplication) Kapitel 1 Multiplication of Long Integers (Faster than Long Multiplication) Arno Eigenwillig und Kurt Mehlhorn An algorithm for multiplication of integers is taught already in primary school: To multiply

More information

Turing Machines, Part I

Turing Machines, Part I Turing Machines, Part I Languages The $64,000 Question What is a language? What is a class of languages? Computer Science Theory 2 1 Now our picture looks like Context Free Languages Deterministic Context

More information

Computational Models Lecture 8, Spring 2009

Computational Models Lecture 8, Spring 2009 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown Univ. p. 1 Computational Models Lecture 8, Spring 2009 Encoding of TMs Universal Turing Machines The Halting/Acceptance

More information

Forward exchange rates

Forward exchange rates Forward exchange rates The forex market consists of two distinct markets - the spot foreign exchange market (in which currencies are bought and sold for delivery within two working days) and the forward

More information

History of Informatics: Ada Lovelace

History of Informatics: Ada Lovelace History of Informatics: Ada Lovelace Renske Weeda (9913467) e-mail: [email protected] 10th May 2004 Contents 1 Introduction 3 2 Biographical facts 3 3 Contributions 4 3.1 The Notes......................................

More information

6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 2008

6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 2008 MIT OpenCourseWare http://ocw.mit.edu 6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.

More information

How To Understand The Theory Of Computer Science

How To Understand The Theory Of Computer Science Theory of Computation Lecture Notes Abhijat Vichare August 2005 Contents 1 Introduction 2 What is Computation? 3 The λ Calculus 3.1 Conversions: 3.2 The calculus in use 3.3 Few Important Theorems 3.4 Worked

More information

Chapter 1. Computation theory

Chapter 1. Computation theory Chapter 1. Computation theory In this chapter we will describe computation logic for the machines. This topic is a wide interdisciplinary field, so that the students can work in an interdisciplinary context.

More information

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture - 04 Digital Logic II May, I before starting the today s lecture

More information

A Short Guide to Significant Figures

A Short Guide to Significant Figures A Short Guide to Significant Figures Quick Reference Section Here are the basic rules for significant figures - read the full text of this guide to gain a complete understanding of what these rules really

More information

3515ICT Theory of Computation Turing Machines

3515ICT Theory of Computation Turing Machines Griffith University 3515ICT Theory of Computation Turing Machines (Based loosely on slides by Harald Søndergaard of The University of Melbourne) 9-0 Overview Turing machines: a general model of computation

More information

1.7 Graphs of Functions

1.7 Graphs of Functions 64 Relations and Functions 1.7 Graphs of Functions In Section 1.4 we defined a function as a special type of relation; one in which each x-coordinate was matched with only one y-coordinate. We spent most

More information

Financial Mathematics

Financial Mathematics Financial Mathematics For the next few weeks we will study the mathematics of finance. Apart from basic arithmetic, financial mathematics is probably the most practical math you will learn. practical in

More information

CS 3719 (Theory of Computation and Algorithms) Lecture 4

CS 3719 (Theory of Computation and Algorithms) Lecture 4 CS 3719 (Theory of Computation and Algorithms) Lecture 4 Antonina Kolokolova January 18, 2012 1 Undecidable languages 1.1 Church-Turing thesis Let s recap how it all started. In 1990, Hilbert stated a

More information

Lies My Calculator and Computer Told Me

Lies My Calculator and Computer Told Me Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing

More information

8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

More information

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r. CHAPTER 2 Logic 1. Logic Definitions 1.1. Propositions. Definition 1.1.1. A proposition is a declarative sentence that is either true (denoted either T or 1) or false (denoted either F or 0). Notation:

More information

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2 Proofs Intuitively, the concept of proof should already be familiar We all like to assert things, and few of us

More information

Soroban. The Japanese Abacus By Kimie Markarian

Soroban. The Japanese Abacus By Kimie Markarian Soroban he Japanese Abacus By Kimie Markarian Japan 21 has class sets of soroban and teaching soroban available for loan; please contact us on 020 7630 8696 or [email protected] Japan 21, Swire

More information

Math Games For Skills and Concepts

Math Games For Skills and Concepts Math Games p.1 Math Games For Skills and Concepts Original material 2001-2006, John Golden, GVSU permission granted for educational use Other material copyright: Investigations in Number, Data and Space,

More information

4.3 TABLE 3 TABLE 4. 1342 five 1 125 3 25 4 5 2 1 125 75 20 2 222.

4.3 TABLE 3 TABLE 4. 1342 five 1 125 3 25 4 5 2 1 125 75 20 2 222. .3 Conversion Between Number Bases 169.3 Conversion Between Number Bases Although the numeration systems discussed in the opening section were all base ten, other bases have occurred historically. For

More information

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

WRITING PROOFS. Christopher Heil Georgia Institute of Technology WRITING PROOFS Christopher Heil Georgia Institute of Technology A theorem is just a statement of fact A proof of the theorem is a logical explanation of why the theorem is true Many theorems have this

More information

3 Some Integer Functions

3 Some Integer Functions 3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple

More information

I remember that when I

I remember that when I 8. Airthmetic and Geometric Sequences 45 8. ARITHMETIC AND GEOMETRIC SEQUENCES Whenever you tell me that mathematics is just a human invention like the game of chess I would like to believe you. But I

More information

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March

More information

NUMBER SYSTEMS. William Stallings

NUMBER SYSTEMS. William Stallings NUMBER SYSTEMS William Stallings The Decimal System... The Binary System...3 Converting between Binary and Decimal...3 Integers...4 Fractions...5 Hexadecimal Notation...6 This document available at WilliamStallings.com/StudentSupport.html

More information

Numeracy and mathematics Experiences and outcomes

Numeracy and mathematics Experiences and outcomes Numeracy and mathematics Experiences and outcomes My learning in mathematics enables me to: develop a secure understanding of the concepts, principles and processes of mathematics and apply these in different

More information

Chapter 13: Fibonacci Numbers and the Golden Ratio

Chapter 13: Fibonacci Numbers and the Golden Ratio Chapter 13: Fibonacci Numbers and the Golden Ratio 13.1 Fibonacci Numbers THE FIBONACCI SEQUENCE 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, The sequence of numbers shown above is called the Fibonacci

More information

Session 7 Fractions and Decimals

Session 7 Fractions and Decimals Key Terms in This Session Session 7 Fractions and Decimals Previously Introduced prime number rational numbers New in This Session period repeating decimal terminating decimal Introduction In this session,

More information

Kenken For Teachers. Tom Davis [email protected] http://www.geometer.org/mathcircles June 27, 2010. Abstract

Kenken For Teachers. Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles June 27, 2010. Abstract Kenken For Teachers Tom Davis [email protected] http://www.geometer.org/mathcircles June 7, 00 Abstract Kenken is a puzzle whose solution requires a combination of logic and simple arithmetic skills.

More information

Chapter 31 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M.

Chapter 31 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. 31 Geometric Series Motivation (I hope) Geometric series are a basic artifact of algebra that everyone should know. 1 I am teaching them here because they come up remarkably often with Markov chains. The

More information

APPENDIX. Interest Concepts of Future and Present Value. Concept of Interest TIME VALUE OF MONEY BASIC INTEREST CONCEPTS

APPENDIX. Interest Concepts of Future and Present Value. Concept of Interest TIME VALUE OF MONEY BASIC INTEREST CONCEPTS CHAPTER 8 Current Monetary Balances 395 APPENDIX Interest Concepts of Future and Present Value TIME VALUE OF MONEY In general business terms, interest is defined as the cost of using money over time. Economists

More information

6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10

6 3 4 9 = 6 10 + 3 10 + 4 10 + 9 10 Lesson The Binary Number System. Why Binary? The number system that you are familiar with, that you use every day, is the decimal number system, also commonly referred to as the base- system. When you

More information

Common sense, and the model that we have used, suggest that an increase in p means a decrease in demand, but this is not the only possibility.

Common sense, and the model that we have used, suggest that an increase in p means a decrease in demand, but this is not the only possibility. Lecture 6: Income and Substitution E ects c 2009 Je rey A. Miron Outline 1. Introduction 2. The Substitution E ect 3. The Income E ect 4. The Sign of the Substitution E ect 5. The Total Change in Demand

More information

Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit

Binary Division. Decimal Division. Hardware for Binary Division. Simple 16-bit Divider Circuit Decimal Division Remember 4th grade long division? 43 // quotient 12 521 // divisor dividend -480 41-36 5 // remainder Shift divisor left (multiply by 10) until MSB lines up with dividend s Repeat until

More information

5544 = 2 2772 = 2 2 1386 = 2 2 2 693. Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

5544 = 2 2772 = 2 2 1386 = 2 2 2 693. Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1 MATH 13150: Freshman Seminar Unit 8 1. Prime numbers 1.1. Primes. A number bigger than 1 is called prime if its only divisors are 1 and itself. For example, 3 is prime because the only numbers dividing

More information

Working with whole numbers

Working with whole numbers 1 CHAPTER 1 Working with whole numbers In this chapter you will revise earlier work on: addition and subtraction without a calculator multiplication and division without a calculator using positive and

More information

Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

More information

What Is Singapore Math?

What Is Singapore Math? What Is Singapore Math? You may be wondering what Singapore Math is all about, and with good reason. This is a totally new kind of math for you and your child. What you may not know is that Singapore has

More information

Chapter 11 Number Theory

Chapter 11 Number Theory Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications

More information

Basic numerical skills: FRACTIONS, DECIMALS, PROPORTIONS, RATIOS AND PERCENTAGES

Basic numerical skills: FRACTIONS, DECIMALS, PROPORTIONS, RATIOS AND PERCENTAGES Basic numerical skills: FRACTIONS, DECIMALS, PROPORTIONS, RATIOS AND PERCENTAGES. Introduction (simple) This helpsheet is concerned with the ways that we express quantities that are not whole numbers,

More information

Playing with Numbers

Playing with Numbers PLAYING WITH NUMBERS 249 Playing with Numbers CHAPTER 16 16.1 Introduction You have studied various types of numbers such as natural numbers, whole numbers, integers and rational numbers. You have also

More information

Decimal Notations for Fractions Number and Operations Fractions /4.NF

Decimal Notations for Fractions Number and Operations Fractions /4.NF Decimal Notations for Fractions Number and Operations Fractions /4.NF Domain: Cluster: Standard: 4.NF Number and Operations Fractions Understand decimal notation for fractions, and compare decimal fractions.

More information

Multiplying and Dividing Signed Numbers. Finding the Product of Two Signed Numbers. (a) (3)( 4) ( 4) ( 4) ( 4) 12 (b) (4)( 5) ( 5) ( 5) ( 5) ( 5) 20

Multiplying and Dividing Signed Numbers. Finding the Product of Two Signed Numbers. (a) (3)( 4) ( 4) ( 4) ( 4) 12 (b) (4)( 5) ( 5) ( 5) ( 5) ( 5) 20 SECTION.4 Multiplying and Dividing Signed Numbers.4 OBJECTIVES 1. Multiply signed numbers 2. Use the commutative property of multiplication 3. Use the associative property of multiplication 4. Divide signed

More information

Linear Programming Notes VII Sensitivity Analysis

Linear Programming Notes VII Sensitivity Analysis Linear Programming Notes VII Sensitivity Analysis 1 Introduction When you use a mathematical model to describe reality you must make approximations. The world is more complicated than the kinds of optimization

More information

Number Systems and Radix Conversion

Number Systems and Radix Conversion Number Systems and Radix Conversion Sanjay Rajopadhye, Colorado State University 1 Introduction These notes for CS 270 describe polynomial number systems. The material is not in the textbook, but will

More information

Mathematical Induction

Mathematical Induction Mathematical Induction (Handout March 8, 01) The Principle of Mathematical Induction provides a means to prove infinitely many statements all at once The principle is logical rather than strictly mathematical,

More information

20-30 minutes, can be used within a longer activity

20-30 minutes, can be used within a longer activity Locked-in 1 Age group successfully used with: Abilities assumed: Time: Size of group: 11 adult None 20-30 minutes, can be used within a longer activity anything from 2 to hundreds Focus What is an algorithm?

More information

Base Conversion written by Cathy Saxton

Base Conversion written by Cathy Saxton Base Conversion written by Cathy Saxton 1. Base 10 In base 10, the digits, from right to left, specify the 1 s, 10 s, 100 s, 1000 s, etc. These are powers of 10 (10 x ): 10 0 = 1, 10 1 = 10, 10 2 = 100,

More information

PYTHAGOREAN TRIPLES KEITH CONRAD

PYTHAGOREAN TRIPLES KEITH CONRAD PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient

More information

The Crescent Primary School Calculation Policy

The Crescent Primary School Calculation Policy The Crescent Primary School Calculation Policy Examples of calculation methods for each year group and the progression between each method. January 2015 Our Calculation Policy This calculation policy has

More information

5 Homogeneous systems

5 Homogeneous systems 5 Homogeneous systems Definition: A homogeneous (ho-mo-jeen -i-us) system of linear algebraic equations is one in which all the numbers on the right hand side are equal to : a x +... + a n x n =.. a m

More information

Notes on Complexity Theory Last updated: August, 2011. Lecture 1

Notes on Complexity Theory Last updated: August, 2011. Lecture 1 Notes on Complexity Theory Last updated: August, 2011 Jonathan Katz Lecture 1 1 Turing Machines I assume that most students have encountered Turing machines before. (Students who have not may want to look

More information

Lecture 8: Synchronous Digital Systems

Lecture 8: Synchronous Digital Systems Lecture 8: Synchronous Digital Systems The distinguishing feature of a synchronous digital system is that the circuit only changes in response to a system clock. For example, consider the edge triggered

More information

NP-Completeness and Cook s Theorem

NP-Completeness and Cook s Theorem NP-Completeness and Cook s Theorem Lecture notes for COM3412 Logic and Computation 15th January 2002 1 NP decision problems The decision problem D L for a formal language L Σ is the computational task:

More information

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: 9081 + 900b + 90c = 9001 + 100c + 10b

We can express this in decimal notation (in contrast to the underline notation we have been using) as follows: 9081 + 900b + 90c = 9001 + 100c + 10b In this session, we ll learn how to solve problems related to place value. This is one of the fundamental concepts in arithmetic, something every elementary and middle school mathematics teacher should

More information

1. The Fly In The Ointment

1. The Fly In The Ointment Arithmetic Revisited Lesson 5: Decimal Fractions or Place Value Extended Part 5: Dividing Decimal Fractions, Part 2. The Fly In The Ointment The meaning of, say, ƒ 2 doesn't depend on whether we represent

More information

Zuse's Z3 Square Root Algorithm Talk given at Fall meeting of the Ohio Section of the MAA October 1999 - College of Wooster

Zuse's Z3 Square Root Algorithm Talk given at Fall meeting of the Ohio Section of the MAA October 1999 - College of Wooster Zuse's Z3 Square Root Algorithm Talk given at Fall meeting of the Ohio Section of the MAA October 1999 - College of Wooster Abstract Brian J. Shelburne Dept of Math and Comp Sci Wittenberg University In

More information

0.8 Rational Expressions and Equations

0.8 Rational Expressions and Equations 96 Prerequisites 0.8 Rational Expressions and Equations We now turn our attention to rational expressions - that is, algebraic fractions - and equations which contain them. The reader is encouraged to

More information

Currency and Exchange Rates

Currency and Exchange Rates Grade Five Currency and Exchange Rates Overview Students share the book The Story of Money, by Betsy Maestro, to learn about exchange and barter, the functions of money, currency, and spending money. Students

More information

SECTION 10-2 Mathematical Induction

SECTION 10-2 Mathematical Induction 73 0 Sequences and Series 6. Approximate e 0. using the first five terms of the series. Compare this approximation with your calculator evaluation of e 0.. 6. Approximate e 0.5 using the first five terms

More information

The Binomial Distribution

The Binomial Distribution The Binomial Distribution James H. Steiger November 10, 00 1 Topics for this Module 1. The Binomial Process. The Binomial Random Variable. The Binomial Distribution (a) Computing the Binomial pdf (b) Computing

More information

POLYNOMIAL FUNCTIONS

POLYNOMIAL FUNCTIONS POLYNOMIAL FUNCTIONS Polynomial Division.. 314 The Rational Zero Test.....317 Descarte s Rule of Signs... 319 The Remainder Theorem.....31 Finding all Zeros of a Polynomial Function.......33 Writing a

More information

1.6 The Order of Operations

1.6 The Order of Operations 1.6 The Order of Operations Contents: Operations Grouping Symbols The Order of Operations Exponents and Negative Numbers Negative Square Roots Square Root of a Negative Number Order of Operations and Negative

More information

Introduction to Turing Machines

Introduction to Turing Machines Automata Theory, Languages and Computation - Mírian Halfeld-Ferrari p. 1/2 Introduction to Turing Machines SITE : http://www.sir.blois.univ-tours.fr/ mirian/ Automata Theory, Languages and Computation

More information

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of. Polynomial and Rational Functions Outline 3-1 Polynomial Functions 3-2 Finding Rational Zeros of Polynomials 3-3 Approximating Real Zeros of Polynomials 3-4 Rational Functions Chapter 3 Group Activity:

More information

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2. Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

More information

TEACHER S GUIDE TO RUSH HOUR

TEACHER S GUIDE TO RUSH HOUR Using Puzzles to Teach Problem Solving TEACHER S GUIDE TO RUSH HOUR Includes Rush Hour 2, 3, 4, Rush Hour Jr., Railroad Rush Hour and Safari Rush Hour BENEFITS Rush Hour is a sliding piece puzzle that

More information

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89 by Joseph Collison Copyright 2000 by Joseph Collison All rights reserved Reproduction or translation of any part of this work beyond that permitted by Sections

More information

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1. MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column

More information

3.1. RATIONAL EXPRESSIONS

3.1. RATIONAL EXPRESSIONS 3.1. RATIONAL EXPRESSIONS RATIONAL NUMBERS In previous courses you have learned how to operate (do addition, subtraction, multiplication, and division) on rational numbers (fractions). Rational numbers

More information

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team Lecture Summary In this lecture, we learned about the ADT Priority Queue. A

More information

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing

More information

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms PROG0101 FUNDAMENTALS OF PROGRAMMING Chapter 3 1 Introduction to A sequence of instructions. A procedure or formula for solving a problem. It was created mathematician, Mohammed ibn-musa al-khwarizmi.

More information

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce

More information

Decision Making under Uncertainty

Decision Making under Uncertainty 6.825 Techniques in Artificial Intelligence Decision Making under Uncertainty How to make one decision in the face of uncertainty Lecture 19 1 In the next two lectures, we ll look at the question of how

More information

Integer Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions

Integer Operations. Overview. Grade 7 Mathematics, Quarter 1, Unit 1.1. Number of Instructional Days: 15 (1 day = 45 minutes) Essential Questions Grade 7 Mathematics, Quarter 1, Unit 1.1 Integer Operations Overview Number of Instructional Days: 15 (1 day = 45 minutes) Content to Be Learned Describe situations in which opposites combine to make zero.

More information

SYMBOL AND MEANING IN MATHEMATICS

SYMBOL AND MEANING IN MATHEMATICS ,,. SYMBOL AND MEANING IN MATHEMATICS ALICE M. DEAN Mathematics and Computer Science Department Skidmore College May 26,1995 There is perhaps no other field of study that uses symbols as plentifully and

More information

Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2

Negative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2 4 (4-) Chapter 4 Polynomials and Eponents P( r) 0 ( r) dollars. Which law of eponents can be used to simplify the last epression? Simplify it. P( r) 7. CD rollover. Ronnie invested P dollars in a -year

More information

Multiplication and Division with Rational Numbers

Multiplication and Division with Rational Numbers Multiplication and Division with Rational Numbers Kitty Hawk, North Carolina, is famous for being the place where the first airplane flight took place. The brothers who flew these first flights grew up

More information

CALCULATIONS & STATISTICS

CALCULATIONS & STATISTICS CALCULATIONS & STATISTICS CALCULATION OF SCORES Conversion of 1-5 scale to 0-100 scores When you look at your report, you will notice that the scores are reported on a 0-100 scale, even though respondents

More information

Math 4310 Handout - Quotient Vector Spaces

Math 4310 Handout - Quotient Vector Spaces Math 4310 Handout - Quotient Vector Spaces Dan Collins The textbook defines a subspace of a vector space in Chapter 4, but it avoids ever discussing the notion of a quotient space. This is understandable

More information

Count the Dots Binary Numbers

Count the Dots Binary Numbers Activity 1 Count the Dots Binary Numbers Summary Data in computers is stored and transmitted as a series of zeros and ones. How can we represent words and numbers using just these two symbols? Curriculum

More information

Section 1.5 Exponents, Square Roots, and the Order of Operations

Section 1.5 Exponents, Square Roots, and the Order of Operations Section 1.5 Exponents, Square Roots, and the Order of Operations Objectives In this section, you will learn to: To successfully complete this section, you need to understand: Identify perfect squares.

More information

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite

ALGEBRA. sequence, term, nth term, consecutive, rule, relationship, generate, predict, continue increase, decrease finite, infinite ALGEBRA Pupils should be taught to: Generate and describe sequences As outcomes, Year 7 pupils should, for example: Use, read and write, spelling correctly: sequence, term, nth term, consecutive, rule,

More information

Permutation Groups. Tom Davis [email protected] http://www.geometer.org/mathcircles April 2, 2003

Permutation Groups. Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles April 2, 2003 Permutation Groups Tom Davis [email protected] http://www.geometer.org/mathcircles April 2, 2003 Abstract This paper describes permutations (rearrangements of objects): how to combine them, and how

More information

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Algebra 1, Quarter 2, Unit 2.1 Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities Overview Number of instructional days: 15 (1 day = 45 60 minutes) Content to be learned

More information

Radicals - Multiply and Divide Radicals

Radicals - Multiply and Divide Radicals 8. Radicals - Multiply and Divide Radicals Objective: Multiply and divide radicals using the product and quotient rules of radicals. Multiplying radicals is very simple if the index on all the radicals

More information

Factorizations: Searching for Factor Strings

Factorizations: Searching for Factor Strings " 1 Factorizations: Searching for Factor Strings Some numbers can be written as the product of several different pairs of factors. For example, can be written as 1, 0,, 0, and. It is also possible to write

More information