CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Design and Analysis of Algorithms.

Slides:



Advertisements
Similar presentations
22 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Advertisements

Discrete Mathematics I Lectures Chapter 6
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Denoting the beginning
Discrete Mathematics Lecture 4 Harper Langston New York University.
Sets 1.
CSE115/ENGR160 Discrete Mathematics 02/10/11 Ming-Hsuan Yang UC Merced 1.
Sets 1.
Department of Computer Sciences Bahria University (Karachi Campus)
CSC 2300 Data Structures & Algorithms January 16, 2007 Chapter 1. Introduction.
Sets.
Set theory Sets: Powerful tool in computer science to solve real world problems. A set is a collection of distinct objects called elements. Traditionally,
 2004 SDU Introduction to the Theory of Computation My name: 冯好娣 My office: 计算中心 430
1 Introduction (Pengenalan) n About the Lecturer: –Nama lengkap: Heru Suhartanto, Ph.D –Kantor: Ruang 1214, Gedung A, Fakultas Ilmu Komputer UI, Depok.
MTH-376 Algebra Lecture 1. Instructor: Dr. Muhammad Fazeel Anwar Assistant Professor Department of Mathematics COMSATS Institute of Information Technology.
Set Theory. What is a set?  Sets are used to define the concepts of relations and functions. The study of geometry, sequences, probability, etc. requires.
CS 103 Discrete Structures Lecture 01 Introduction to the Course
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Sets.
Michaelmas Term 2004 Discrete Mathematics CSC 141 Discrete Mathematics Dr. Corina Sas and Ms. Nelly Bencomo
CS1201: Programming Language 2 C++(Course Introduction) Level 2 Nouf Aljaffan 1 st Term Nouf Aljaffan (C) CSC 1201 Course at KSU.
Set, Combinatorics, Probability & Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Set,
Sets Defined A set is an object defined as a collection of other distinct objects, known as elements of the set The elements of a set can be anything:
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Copyright  The McGraw-Hill Companies, Inc. Permission required for reproduction.
Discrete Structure Sets. 2 Set Theory Set: Collection of objects (“elements”) a  A “a is an element of A” “a is a member of A” a  A “a is not an element.
CS201: Data Structures and Discrete Mathematics I
Chapter 2: Basic Structures: Sets, Functions, Sequences, and Sums (1)
CompSci 102 Discrete Math for Computer Science
Section 2.1. Section Summary Definition of sets Describing Sets Roster Method Set-Builder Notation Some Important Sets in Mathematics Empty Set and Universal.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
ELEMENTARY SET THEORY.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Module Code MA1032N: Logic Lecture for Week Autumn.
Basic Principles (continuation) 1. A Quantitative Measure of Information As we already have realized, when a statistical experiment has n eqiuprobable.
Sets 2/10/121. What is a Set? Informally, a collection of objects, determined by its members, treated as a single mathematical object Not a real definition:
Chapter 2 With Question/Answer Animations. Section 2.1.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Chapter P Prerequisites: Fundamental Concepts of Algebra 1 Copyright © 2014, 2010, 2007 Pearson Education, Inc. 1 P.1 Algebraic Expressions, Mathematical.
Introduction Episode 0 What is TOC (Theory of Computation) about? Giorgi Japaridze Theory of Computability Subject: The fundamental mathematical properties.
(CSC 102) Lecture 13 Discrete Structures. Previous Lectures Summary  Direct Proof  Indirect Proof  Proof by Contradiction  Proof by Contra positive.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Module #10: Proof Strategies Rosen 5 th ed., §3.1 (already covered)
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Chapter 7 Sets and Probability Section 7.1 Sets What is a Set? A set is a well-defined collection of objects in which it is possible to determine whether.
Discrete Mathematics CS 2610 August 31, Agenda Set Theory Set Builder Notation Universal Set Power Set and Cardinality Set Operations Set Identities.
Section 2.1. Sets A set is an unordered collection of objects. the students in this class the chairs in this room The objects in a set are called the.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Based on Rosen, Discrete Mathematics & Its Applications, 5e Prepared by (c) Michael P. Frank Modified by (c) Haluk Bingöl 1/18 Module.
Introduction to Set Theory (§1.6) A set is a new type of structure, representing an unordered collection (group, plurality) of zero or more distinct (different)
Sets, Permutations, and Combinations. Lecture 4-1: Sets Sets: Powerful tool in computer science to solve real world problems. A set is a collection of.
The set of whole numbers less than 7 is {1, 2, 3, 4, 5, 6}
Chapter 2 Sets and Functions.
CHAPTER 2 Set Theory A B C.
Set Definition: A set is unordered collection of objects.
CHAPTER 3 SETS, BOOLEAN ALGEBRA & LOGIC CIRCUITS
CSNB 143 Discrete Mathematical Structures
Set, Combinatorics, Probability & Number Theory
Lecture 1 Theory of Automata
Chapter 1 Logic and Proofs Homework 2 Given the statement “A valid password is necessary for you to log on to the campus server.” Express the statement.
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 2 Sets Slides are adopted from “Discrete.
CS100: Discrete structures
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Discrete Mathematics CS 2610
The aim of education is to teach students how to think rather than what to think. Sets The set is the fundamental discrete structure on which all other.
Rosen 5th ed., §3.2 ~9 slides, ~½ lecture
Discrete Mathematics and its Applications
Lecture Sets 2.2 Set Operations.
ICOM 5016 – Introduction to Database Systems
Presentation transcript:

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Design and Analysis of Algorithms Khawaja Mohiuddin Assistant Professor, Department of Computer Sciences Bahria University, Karachi Campus, Contact: Lecture # 1 - Introduction

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Your Responsibilities 2  As a Student  Attend classes regularly to avoid Attendance Shortage issue  Ask questions if you have any queries regarding course material or anything  Submit assignments in time  Don’t miss quizzes, assignments, mid term and final examinations – Can get good result  No Plagiarism is allowed in any sort of a written material. Write everything in your own words

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Course Policy 3  Assignments  Assignments are due at the beginning of class  Late assignments will not be accepted  All work has to be done independently except in case of group assignments  Students handing in similar assignments will receive a grade of 0 (ZERO) and face possible disciplinary actions  Makeup Exams  In accordance with university regulations, i.e. students should bring a valid excuse authenticated through valid channels immediately within first week after the exam  Otherwise they will be considered absent and no makeup exam for them  Mobile Phones  Cell phones are restricted during class. Cell phones must be turned off during the lecture. If your cell phone rings during the class, you may be asked to leave

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Course Policy 4  Attendance  Students are expected to attend all classes  If a student misses 10 hours in total without an acceptable reason, the student will be barred from the final exams  Code of Conduct  The assignments, quizzes and exams need to be done individually. Copying of another student's work or code, even if changes are subsequently made, is inappropriate, and such work or code will not be accepted  The University has very clear guidelines for academic misconduct, and they will be enforced in this class  In case of group assignments, copying of another group’s work or code, even if changes are subsequently made, is inappropriate, and such work or code will not be accepted

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Marks Distribution 5 ActivitiesMarks Quizzes10 Assignment # 1 and 2 (Theory + Exercises - Individual) 10 Assignment # 3 (Coding – in Groups of 3 or less) 10 Mid Term20 Final Term50 Total100

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Recommended Books 6  Text Book  Himanshu, D. P. (2014). Design and Analysis of Algorithms (2nd ed.). Pearson (New Delhi).  Reference Books  Stephens, R. (2013). Essential Algorithms: A Practical Approach to Computer Algorithms. Wiley  Cormen, T. H. (2012). Introduction to Algorithms (3rd ed.). PHI Learning.

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Essential Mathematical Background 7  Sets  A set is a collection of entities that can be identified  The entities are called members or elements of the set  Sets are characterised by the concept of membership, denoted by symbol  a S implies entity a is a member of the set S  A set can be finite, for example, the set of non-negative integers less than 5  A small finite set is normally written completely, for example, {1,2,3,4}  A set can be empty, for example, a set of all human beings aged more than 500 years  Such a set is also called null-set and denoted by symbol Ф  A set can be infinite, for example, a set of all C programs  This is not a finite set, since no matter how large a program you write, it is possible to write a larger one by inserting another statement

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Essential Mathematical Background 8  Notation of Sets  Usually, two notations are used to specify sets:  Enumeration: for example {0,1,2,3,4}  Set-Builder Form or Predicate Form: {x | P(x)} where P(x) is a predicate that describes a property of all elements x  {x S | P(x)} equivalent to {x| x S ٨ P(x)}  For example, {x | x is an integer ٨ 0 ≤ x ٨ x < 5}  There are few sets used frequently that are called Special sets  N : the set of natural numbers (usually including 0)  Z : the set of integers  Q : the set of rational numbers  R : the set of real numbers  I : the set of imaginary numbers  C : the set of complex numbers

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Essential Mathematical Background 9  Relationships Between Sets  Subset  Superset  Proper Subset  Disjoint  Set Operations  Let U denote the Universal set that is common set from which elements of sets are selected  The following operations on sets are defined:  Union  Intersection  Complement  Set Difference  Cartesian Product  Power Set

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Essential Mathematical Background 10  Sequences and Series  A sequence of objects is a list of these objects in some order. We usually designate a sequence by writing the list within parentheses. For example, the sequence 7, 21, 63 would be written (7, 21, 63)  In sets, order does not matter but in sequence it does matter  Sequence can be finite or infinite  Finite Sequence is often called as “TUPLE”  A sequence with n-elements is a n-tuple. Thus (7, 21,63) is a 3-tuple  A 2-tuple is also called a “PAIR”  A series is a summation of terms in a sequence. For example the corresponding series is the sum " ", and the value of the series is 91.

CSC-305 Design and Analysis of AlgorithmsBS(CS) -6 Fall-2014 Essential Mathematical Background 11  Upper and Lower Bounds of a Set  Upper Bound: Any number that is greater than or equal to all of the elements of a given set  Lower Bound: Any number that is less than or equal to all of the elements of a given set  For example: 5 is lower bound for the set { 5, 10, 34, }, but 8 is not. 42 is both an upper and a lower bound for the set { 42 }; all other numbers are either an upper bound or a lower bound for that set.  World’s strongest man claims he can lift 70 kg with his little finger rounded to the nearest 10kg. What is the smallest and greatest amount he can lift?