Data Types 2 Arithmetic funtions ans laws.

Slides:



Advertisements
Similar presentations
Chapter 1 Review In Algebra, we use symbols to stand for various numbers. One type of symbol used is a variable. An expression that contains at least one.
Advertisements

BAI CM20144 Applications I: Mathematics for Applications Mark Wood
The Complex Number System
Mathematics of Cryptography Part II: Algebraic Structures
Cryptography and Network Security
Chapter 4 Finite Fields. Introduction of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key concern operations on “numbers”
Cryptography and Network Security Chapter 4 Fourth Edition by William Stallings.
Chapter 4 – Finite Fields. Introduction will now introduce finite fields of increasing importance in cryptography –AES, Elliptic Curve, IDEA, Public Key.
Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Algebraic Structures DEFINITIONS: PROPERTIES OF BINARY OPERATIONS Let S be a set and let  denote a binary operation on S. (Here  does not necessarily.
CSE-221 Digital Logic Design (DLD)
1 Foundations of Interval Computation Trong Wu Phone: Department of Computer Science Southern Illinois University Edwardsville.
Slide 10-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
MATH10001 Project 2 Groups part 1 ugstudies/units/ /level1/MATH10001/
Properties of Real Numbers. Closure Property Commutative Property.
1 Section 10.1 What Is an Algebra? To most people the word algebra means high school algebra. But there are many kinds of algebra. An algebra consists.
Week7 Stack Data Structures & Algorithms. Introduction to Stacks and Queues Widely used data structures Ordered List of element Easy to implement Easy.
Numbers, Operations, and Quantitative Reasoning.
Mathematical Modeling and Formal Specification Languages CIS 376 Bruce R. Maxim UM-Dearborn.
DATA STRUCTURE & ALGORITHMS CHAPTER 3: STACKS. 2 Objectives In this chapter, you will: Learn about stacks Examine various stack operations Discover stack.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Distributive Categories
Categories and Computer Science
Permutation Groups Part 1. Definition A permutation of a set A is a function from A to A that is both one to one and onto.
Temperature Readings The equation to convert the temperature from degrees Fahrenheit to degrees Celsius is: c(x) = (x - 32) The equation to convert the.
Properties of Real Numbers. Sets In mathematics, a set is a collection of things Sets can be studies as a topic all on its own (known as set theory),
Data Security and Encryption (CSE348) 1. Lecture # 12 2.
Set A formal collection of objects, which can be anything May be finite or infinite Can be defined by: – Listing the elements – Drawing a picture – Writing.
Jason Holman Mathematics Number Theory Algebraic Theory Global Fields for Complex Multiplication Local and “p”-adic fields.
Trees CS 105. L9: Trees Slide 2 Definition The Tree Data Structure stores objects (nodes) hierarchically nodes have parent-child relationships operations.
Foundation of Computing Systems Lecture 3 Stacks and Queues.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
THE REAL NUMBERS College Algebra. Sets Set notation Union of sets Intersection of sets Subsets Combinations of three or more sets Applications.
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
UNIT - 2.  A binary operation on a set combines two elements of the set to produce another element of the set. a*b  G,  a, b  G e.g. +, -, ,  are.
Unit 3 Vocabulary EXPRESSIONS. Algebraic Expression.
Chapter 6 Abstract algebra
ADS 1 Algorithms and Data Structures 1 Syllabus Asymptotical notation (Binary trees,) AVL trees, Red-Black trees B-trees Hashing Graph alg: searching,
Great Theoretical Ideas in Computer Science.
CSCI 115 Chapter 1 Fundamentals. CSCI 115 §1.1 Sets and Subsets.
Chapter 13 Mathematic Structures 13.1 Modular Arithmetic Definition 1 (modulo). Let a be an integer and m be a positive integer. We denoted by a mod m.
Data Structures Evolution of algorithms for an array-based stack, queue, and linked-list. Evolved data structures used to evolve solutions to problems.
Distributive Commutative Addition Zero Property Additive Inverse 0 Multiplicative Identity Commutative Multiplication Multiplicative Inverse Additive Identity.
Axioms for Rational Numbers 9/14-9/15. Natural Numbers – Numbers used for counting: 1, 2, 3, and so on. Whole Numbers – Natural numbers and zero: 0, 1,
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesBoolean Algebra.
Properties of Algebra. 7 + ( ) = ( ) + 9.
SOL 7.16 Properties I will apply the following properties of operations with real numbers The Commutative and Associative Properties for Addition and.
CSCE 355 Foundations of Computation
Properties of Operations
Commutative Property of Addition
Data Structure Interview Question and Answers
Great Theoretical Ideas in Computer Science
Complex Number Field Properties
Mathematic Properties Review
Chapter 2 ERROR ANALYSIS
Real Numbers, Algebra, and Problem Solving
CSCE 355 Foundations of Computation
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems
Introduction to Functions
Stacks, Queues, and Deques
Great Theoretical Ideas in Computer Science
Number Properties Magic Book Foldable
Section 10.1 Groups.
Section 10.2 Finite Mathematical Systems
Number Properties Magic Book Foldable
1.8 – Algebraic Proofs Objective:
Algebra 1 Section 1.3.
Section 9.1 Groups.
Finite Mathematical Systems
Presentation transcript:

Data Types

2 Arithmetic funtions ans laws

3 The Associative Law

4 The Identity Law

5 The Inverse Law

6 The Commutative Law

7 Data Types Algebras such as groups, rings, etc. are familiar data types in mathematics. CS handles other data types other than those algebras. –stacks –queues –arrays –binary trees –other useful data structures A data type consists of various sets of data together with operations between them definable in a distributive category and equations expressible in a distributive category.

8 Stacks (Rough View)

9 Pop revised to avoid stack underflow

10 Push revised for symmetry

11 Axioms

12 Definition.

13 Ex. 1. Infinite stacks

14 Note Just from the axioms, we do not know whether the stacks are finite.

15 Definition. Stacks of X

16 Ex. 2.

17 Notation

18 Ex. 3. The usual operation of pushing an element on a stack

19 Ex. 4. Imperative computing of the depth of a stack

20 Ex. 5. Tests on stacks

21 Arrays - the store function

22 Arrays - the read function

23 Binary Trees

24 Two operations make and break

25 Def. Binary Tree

26 Queues

27 Pointers

28 Turing Machines