Assignment 5 Bounding Complexities KEY
|
|
- Justin Lambert
- 6 years ago
- Views:
Transcription
1 Assignment 5 Bounding Complexities KEY Print this sheet and fill in your answers. Please staple the sheets together. Turn in at the beginning of class on Friday, September 16. There are links in the examples below that take you to the Desmos website and the Wolfram Math website, where these examples are shown graphically. Multiple functions are plotted in different colors. Use the key on the right of the webpage to determine the color for each function. We have also included the URLs of these links so you can copy/paste them if you are working from a pdf file. If you are working from a pdf file, the blue, underlined hyperlinks don t usually work. You have to copy/paste the URL into your browser. The link names we included are in black font and are underlined, but clicking on them does not take you to the website you have to copy/paste the URL into your browser. Complexity The worst case complexity of an algorithm (the maximum number of basic operations it might perform) is a function of the size of its input. So when comparing the complexity of algorithms, we are comparing functions. If we have two functions,, we can determine their relationship as their input sizes grow by looking at the ratio /. For example, 5, 2, / 5/2. The ratio of the two functions does not depend on the input size. So the algorithm whose complexity is requires 2.5 times more operations than the algorithm for no matter the size of n. Their complexities are within a constant factor of each other, even as n grows toward infinity. (Example URL: Another example,,, /. Here function grows faster. The gap between them gets larger and larger as n grows. The gap in the complexities for the two algorithms with these complexities grows logarithmically with the input. As n grows toward infinity, so does the gap, and dwarfs. (Example URL: The relationships between functions we want to identify are: meaning that is an asymptotic upper bound on, within a constant factor. It is read as f of n is order g of n or f is big oh of g of n. meaning that is an asymptotic lower bound on, within a constant factor. It is read as f is big omega of g of n. meaning that is an asymptotically tight bound on, bounding it above and below within a constant factor. It is read as f is big theta of g of n. If and, then. Hence if, then there exist positive constants,, such that for all :
2 Additionally 1 there are: meaning that is an upper bound on that is not asymptotically tight. It is read as f is little oh of g of n. For example, 2, but 2. Where is analogous to, is analogous to. Hence if, then 0. meaning that is a lower bound on that is not asymptotically tight. It is read as f is little omega of g of n. For example,, but. If you think of as analogous to, then is analogous to. Hence if:, then. Instructions: Fill in the blanks with one of the five symbols (O, Ω, Θ, o, or ω) to indicate the relationship between the functions. 1. If, then = Ω_ 2. If, then = ω_ 3. Since, it is also true that = _O and = Ω _ Instructions: For these next two problems, fill in the first blank with the ratio of these two functions. Next determine what that implies about bounding and fill in the other blank(s) with one of the five symbols listed above. 4. If and, then / = _log 2 n, which means that = ω and = _ Ω 1 Some functions are not asymptotically comparable at all (URL:
3 5. If / and 75, then / = _1/75. This ratio means that = _Θ_ (Click here to see graphs of the functions and their ratios. URL: Facts about exponents: 1/ / and if 0 if 0 The polynomial may start slow, (URL: but will overtake the log (URL: eventually. See the approximate solutions (click here, URL: ) for. (try changing the function to. and see what happens this website is Wolfram Math, and you can change the function you want to plot near the top of the webpage) Instructions: For these problems, fill in the first blank with the ratio of these two functions. Next determine what that implies about bounding and fill in the other blanks with one of the five symbols (O, Ω, Θ, o, or ω). 6. If. and., then / = _n 0.1 _, which means that = _o and = _O 7. If. and, then / = _n 0.2 /log 2 n, which means that = ω and = Ω
4 Facts about exponential functions:, if c and d are constants such that 1, 0 Check out the solutions to 1. 1 (at this link, URL: (at this link, URL: and (at this link, URL: Instructions: Fill in the blanks with one of the five symbols (O, Ω, Θ, o, or ω) to indicate the relationship between the functions. 8. If 3 and, then = ω and = Ω Instructions: Fill in the first blank with the ratio of these two functions. Next determine what that implies about bounding and fill in the other blanks with one of the five symbols listed above. 9. If 2 and 3, then / = (2/3) n, which means that = _o and = _O
5 Facts about comparing sums of functions: If, then Essentially, we can ignore all but the largest term If 3 9 4, then / 3 9/ 6/. As, those last two terms approach 0. Check out the graph (URL: and try changing the 9 to 900. See the limit for / (click this link, URL: %5E2),+%7Bn+ %3E+Infinity%7D%5D) Also see the limit for / (click this link, URL: 5E2),+%7Bn+ %3E+Infinity%7D%5D). Instructions: For this question, fill in the first blank with the ratio of these two functions. Next determine what that implies about bounding and fill in the other blank with one of the five symbols (O, Ω, Θ, o, or ω). 10. If (see this link, URL: and, then / = _1/2 + 1/(2n)_, which means that = _Θ_ Facts about logarithm bases: Check out these log functions of different bases and their relationships (URL: Instructions: Fill in the first blank with the ratio of these two functions. Next determine what that implies about bounding and fill in the other blank with one of the five symbols (O, Ω, Θ, o, or ω). 11. If and, then / = _3_, which means that = Θ
2. Limits at Infinity
2 Limits at Infinity To understand sequences and series fully, we will need to have a better understanding of its at infinity We begin with a few examples to motivate our discussion EXAMPLE 1 Find SOLUTION
More informationAlgorithms and Their Complexity
CSCE 222 Discrete Structures for Computing David Kebo Houngninou Algorithms and Their Complexity Chapter 3 Algorithm An algorithm is a finite sequence of steps that solves a problem. Computational complexity
More informationGrowth of Functions (CLRS 2.3,3)
Growth of Functions (CLRS 2.3,3) 1 Review Last time we discussed running time of algorithms and introduced the RAM model of computation. Best-case running time: the shortest running time for any input
More informationAnnouncements. CompSci 230 Discrete Math for Computer Science. The Growth of Functions. Section 3.2
CompSci 230 Discrete Math for Computer Science Announcements Read Chap. 3.1-3.3 No recitation Friday, Oct 11 or Mon Oct 14 October 8, 2013 Prof. Rodger Section 3.2 Big-O Notation Big-O Estimates for Important
More informationPrinciples of Algorithm Analysis
C H A P T E R 3 Principles of Algorithm Analysis 3.1 Computer Programs The design of computer programs requires:- 1. An algorithm that is easy to understand, code and debug. This is the concern of software
More informationAdvanced Algorithmics (6EAP)
Advanced Algorithmics (6EAP) MTAT.03.238 Order of growth maths Jaak Vilo 2017 fall Jaak Vilo 1 Program execution on input of size n How many steps/cycles a processor would need to do How to relate algorithm
More informationCSE 373: Data Structures and Algorithms. Asymptotic Analysis. Autumn Shrirang (Shri) Mare
CSE 373: Data Structures and Algorithms Asymptotic Analysis Autumn 2018 Shrirang (Shri) Mare shri@cs.washington.edu Thanks to Kasey Champion, Ben Jones, Adam Blank, Michael Lee, Evan McCarty, Robbie Weber,
More informationExploring Graphs of Polynomial Functions
Name Period Exploring Graphs of Polynomial Functions Instructions: You will be responsible for completing this packet by the end of the period. You will have to read instructions for this activity. Please
More informationMA008/MIIZ01 Design and Analysis of Algorithms Lecture Notes 2
MA008 p.1/36 MA008/MIIZ01 Design and Analysis of Algorithms Lecture Notes 2 Dr. Markus Hagenbuchner markus@uow.edu.au. MA008 p.2/36 Content of lecture 2 Examples Review data structures Data types vs. data
More informationCS 344 Design and Analysis of Algorithms. Tarek El-Gaaly Course website:
CS 344 Design and Analysis of Algorithms Tarek El-Gaaly tgaaly@cs.rutgers.edu Course website: www.cs.rutgers.edu/~tgaaly/cs344.html Course Outline Textbook: Algorithms by S. Dasgupta, C.H. Papadimitriou,
More informationComputational Complexity
Computational Complexity S. V. N. Vishwanathan, Pinar Yanardag January 8, 016 1 Computational Complexity: What, Why, and How? Intuitively an algorithm is a well defined computational procedure that takes
More informationCSC236 Week 3. Larry Zhang
CSC236 Week 3 Larry Zhang 1 Announcements Problem Set 1 due this Friday Make sure to read Submission Instructions on the course web page. Search for Teammates on Piazza Educational memes: http://www.cs.toronto.edu/~ylzhang/csc236/memes.html
More informationReading 10 : Asymptotic Analysis
CS/Math 240: Introduction to Discrete Mathematics Fall 201 Instructor: Beck Hasti and Gautam Prakriya Reading 10 : Asymptotic Analysis In the last reading, we analyzed the running times of various algorithms.
More informationNorthwest High School s Algebra 1
Northwest High School s Algebra 1 Summer Review Packet 2011 DUE WEDNESDAY, SEPTEMBER 2, 2011 Student Name This packet has been designed to help you review various mathematical topics that will be necessary
More informationHow many hours would you estimate that you spent on this assignment?
The first page of your homework submission must be a cover sheet answering the following questions. Do not leave it until the last minute; it s fine to fill out the cover sheet before you have completely
More informationAn analogy from Calculus: limits
COMP 250 Fall 2018 35 - big O Nov. 30, 2018 We have seen several algorithms in the course, and we have loosely characterized their runtimes in terms of the size n of the input. We say that the algorithm
More informationGrowth of Functions. As an example for an estimate of computation time, let us consider the sequential search algorithm.
Function Growth of Functions Subjects to be Learned Contents big oh max function big omega big theta little oh little omega Introduction One of the important criteria in evaluating algorithms is the time
More information2, or x 5, 3 x 0, x 2
Pre-AP Algebra 2 Lesson 2 End Behavior and Polynomial Inequalities Objectives: Students will be able to: use a number line model to sketch polynomials that have repeated roots. use a number line model
More informationNorthwest High School s Geometry
Northwest High School s Geometry Summer Math Packet (For 2013-2014) DUE THE FIRST DAY OF SCHOOL Student Name: - 1 - This packet has been designed to help you review various mathematical topics that will
More informationEECS 477: Introduction to algorithms. Lecture 5
EECS 477: Introduction to algorithms. Lecture 5 Prof. Igor Guskov guskov@eecs.umich.edu September 19, 2002 1 Lecture outline Asymptotic notation: applies to worst, best, average case performance, amortized
More informationData Structures and Algorithms. Asymptotic notation
Data Structures and Algorithms Asymptotic notation Estimating Running Time Algorithm arraymax executes 7n 1 primitive operations in the worst case. Define: a = Time taken by the fastest primitive operation
More informationcsci 210: Data Structures Program Analysis
csci 210: Data Structures Program Analysis 1 Summary Summary analysis of algorithms asymptotic analysis big-o big-omega big-theta asymptotic notation commonly used functions discrete math refresher READING:
More informationDefine Efficiency. 2: Analysis. Efficiency. Measuring efficiency. CSE 417: Algorithms and Computational Complexity. Winter 2007 Larry Ruzzo
CSE 417: Algorithms and Computational 2: Analysis Winter 2007 Larry Ruzzo Define Efficiency Runs fast on typical real problem instances Pro: sensible, bottom-line-oriented Con: moving target (diff computers,
More informationCSE 421: Intro Algorithms. 2: Analysis. Winter 2012 Larry Ruzzo
CSE 421: Intro Algorithms 2: Analysis Winter 2012 Larry Ruzzo 1 Efficiency Our correct TSP algorithm was incredibly slow Basically slow no matter what computer you have We want a general theory of efficiency
More informationMath 391: Midterm 1.0 Spring 2016
Math 391: Midterm 1.0 Spring 2016 James Skon skonjp@kenyon.edu Test date: October 5 Submission Instructions: Give all your assumptions. Show all your work. Be as complete as possible. Grading Problem 1
More informationCSC Design and Analysis of Algorithms. Lecture 1
CSC 8301- Design and Analysis of Algorithms Lecture 1 Introduction Analysis framework and asymptotic notations What is an algorithm? An algorithm is a finite sequence of unambiguous instructions for solving
More informationCSE332: Data Structures & Parallelism Lecture 2: Algorithm Analysis. Ruth Anderson Winter 2019
CSE332: Data Structures & Parallelism Lecture 2: Algorithm Analysis Ruth Anderson Winter 2019 Today Algorithm Analysis What do we care about? How to compare two algorithms Analyzing Code Asymptotic Analysis
More informationMath 1314 Lesson 4 Limits
Math 1314 Lesson 4 Limits Finding a it amounts to answering the following question: What is happening to the y-value of a function as the x-value approaches a specific target number? If the y-value is
More informationCISC 235: Topic 1. Complexity of Iterative Algorithms
CISC 235: Topic 1 Complexity of Iterative Algorithms Outline Complexity Basics Big-Oh Notation Big-Ω and Big-θ Notation Summations Limitations of Big-Oh Analysis 2 Complexity Complexity is the study of
More informationCOMP 355 Advanced Algorithms
COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background 1 Polynomial Running Time Brute force. For many non-trivial problems, there is a natural brute force search algorithm that
More informationDefining Efficiency. 2: Analysis. Efficiency. Measuring efficiency. CSE 421: Intro Algorithms. Summer 2007 Larry Ruzzo
CSE 421: Intro Algorithms 2: Analysis Summer 2007 Larry Ruzzo Defining Efficiency Runs fast on typical real problem instances Pro: sensible, bottom-line-oriented Con: moving target (diff computers, compilers,
More informationWelcome to the most exciting math class in high school! There are three major tasks you have to accomplish over the summer:
Dear AP Calculus BC Students, Welcome to the most exciting math class in high school! There are three major tasks you have to accomplish over the summer:. Prepare psychologically: Each day repeat I love
More informationAnalysis of Algorithms
October 1, 2015 Analysis of Algorithms CS 141, Fall 2015 1 Analysis of Algorithms: Issues Correctness/Optimality Running time ( time complexity ) Memory requirements ( space complexity ) Power I/O utilization
More informationLecture 2. Fundamentals of the Analysis of Algorithm Efficiency
Lecture 2 Fundamentals of the Analysis of Algorithm Efficiency 1 Lecture Contents 1. Analysis Framework 2. Asymptotic Notations and Basic Efficiency Classes 3. Mathematical Analysis of Nonrecursive Algorithms
More informationNorthwest High School s Algebra 1
Northwest High School s Algebra 1 Summer Review Packet 2015 DUE THE FIRST DAY OF SCHOOL Student Name This packet has been designed to help you review various mathematical topics that will be necessary
More information2.2 Asymptotic Order of Growth. definitions and notation (2.2) examples (2.4) properties (2.2)
2.2 Asymptotic Order of Growth definitions and notation (2.2) examples (2.4) properties (2.2) Asymptotic Order of Growth Upper bounds. T(n) is O(f(n)) if there exist constants c > 0 and n 0 0 such that
More informationNumerical Methods. Exponential and Logarithmic functions. Jaesung Lee
Numerical Methods Exponential and Logarithmic functions Jaesung Lee Exponential Function Exponential Function Introduction We consider how the expression is defined when is a positive number and is irrational.
More informationCOMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background
COMP 355 Advanced Algorithms Algorithm Design Review: Mathematical Background 1 Polynomial Time Brute force. For many non-trivial problems, there is a natural brute force search algorithm that checks every
More informationMotion II. Goals and Introduction
Motion II Goals and Introduction As you have probably already seen in lecture or homework, and if you ve performed the experiment Motion I, it is important to develop a strong understanding of how to model
More informationWelcome to the most exciting math class in high school! There are three major tasks you have to accomplish over the summer:
Dear AP Calculus BC Students, Welcome to the most exciting math class in high school! There are three major tasks you have to accomplish over the summer: 1. Prepare psychologically: Each day repeat I love
More informationCalculus Review Session. Rob Fetter Duke University Nicholas School of the Environment August 13, 2015
Calculus Review Session Rob Fetter Duke University Nicholas School of the Environment August 13, 2015 Schedule Time Event 2:00 2:20 Introduction 2:20 2:40 Functions; systems of equations 2:40 3:00 Derivatives,
More informationAssignment 2.1. Exponent Properties: The Product Rule
Assignment.1 NAME: Exponent Properties: The Product Rule What is the difference between x and x? Explain in complete sentences and with examples. Product Repeated Multiplication Power of the form a b 5
More informationAsymptotic Notation. such that t(n) cf(n) for all n n 0. for some positive real constant c and integer threshold n 0
Asymptotic Notation Asymptotic notation deals with the behaviour of a function in the limit, that is, for sufficiently large values of its parameter. Often, when analysing the run time of an algorithm,
More informationCSE332: Data Structures & Parallelism Lecture 2: Algorithm Analysis. Ruth Anderson Winter 2018
CSE332: Data Structures & Parallelism Lecture 2: Algorithm Analysis Ruth Anderson Winter 2018 Today Algorithm Analysis What do we care about? How to compare two algorithms Analyzing Code Asymptotic Analysis
More informationMathematics Online Instructional Materials Correlation to the 2009 Algebra II Standards of Learning and Curriculum Framework
and Curriculum Framework Provider York County School Division Course Title Algebra II AB Last Updated 2010-11 Course Syllabus URL http://yorkcountyschools.org/virtuallearning/coursecatalog.aspx AII.1 The
More informationCSE332: Data Structures & Parallelism Lecture 2: Algorithm Analysis. Ruth Anderson Winter 2018
CSE332: Data Structures & Parallelism Lecture 2: Algorithm Analysis Ruth Anderson Winter 2018 Today Algorithm Analysis What do we care about? How to compare two algorithms Analyzing Code Asymptotic Analysis
More informationAnalysis of Algorithm Efficiency. Dr. Yingwu Zhu
Analysis of Algorithm Efficiency Dr. Yingwu Zhu Measure Algorithm Efficiency Time efficiency How fast the algorithm runs; amount of time required to accomplish the task Our focus! Space efficiency Amount
More informationLecture 2. More Algorithm Analysis, Math and MCSS By: Sarah Buchanan
Lecture 2 More Algorithm Analysis, Math and MCSS By: Sarah Buchanan Announcements Assignment #1 is posted online It is directly related to MCSS which we will be talking about today or Monday. There are
More informationThe Time Complexity of an Algorithm
CSE 3101Z Design and Analysis of Algorithms The Time Complexity of an Algorithm Specifies how the running time depends on the size of the input. Purpose To estimate how long a program will run. To estimate
More informationMore Asymptotic Analysis Spring 2018 Discussion 8: March 6, 2018
CS 61B More Asymptotic Analysis Spring 2018 Discussion 8: March 6, 2018 Here is a review of some formulas that you will find useful when doing asymptotic analysis. ˆ N i=1 i = 1 + 2 + 3 + 4 + + N = N(N+1)
More informationcsci 210: Data Structures Program Analysis
csci 210: Data Structures Program Analysis Summary Topics commonly used functions analysis of algorithms experimental asymptotic notation asymptotic analysis big-o big-omega big-theta READING: GT textbook
More informationAlgorithms Design & Analysis. Analysis of Algorithm
Algorithms Design & Analysis Analysis of Algorithm Review Internship Stable Matching Algorithm 2 Outline Time complexity Computation model Asymptotic notions Recurrence Master theorem 3 The problem of
More informationBig O 2/14/13. Administrative. Does it terminate? David Kauchak cs302 Spring 2013
/4/3 Administrative Big O David Kauchak cs3 Spring 3 l Assignment : how d it go? l Assignment : out soon l CLRS code? l Videos Insertion-sort Insertion-sort Does it terminate? /4/3 Insertion-sort Loop
More informationCSE 417: Algorithms and Computational Complexity
CSE 417: Algorithms and Computational Complexity Lecture 2: Analysis Larry Ruzzo 1 Why big-o: measuring algorithm efficiency outline What s big-o: definition and related concepts Reasoning with big-o:
More informationAsymptotic Analysis of Algorithms. Chapter 4
Asymptotic Analysis of Algorithms Chapter 4 Overview Motivation Definition of Running Time Classifying Running Time Asymptotic Notation & Proving Bounds Algorithm Complexity vs Problem Complexity Overview
More informationAnalysis of Algorithms [Reading: CLRS 2.2, 3] Laura Toma, csci2200, Bowdoin College
Analysis of Algorithms [Reading: CLRS 2.2, 3] Laura Toma, csci2200, Bowdoin College Why analysis? We want to predict how the algorithm will behave (e.g. running time) on arbitrary inputs, and how it will
More informationIf a function has an inverse then we can determine the input if we know the output. For example if the function
1 Inverse Functions We know what it means for a relation to be a function. Every input maps to only one output, it passes the vertical line test. But not every function has an inverse. A function has no
More informationThe Time Complexity of an Algorithm
Analysis of Algorithms The Time Complexity of an Algorithm Specifies how the running time depends on the size of the input. Purpose To estimate how long a program will run. To estimate the largest input
More informationCSE 373: Data Structures and Algorithms Pep Talk; Algorithm Analysis. Riley Porter Winter 2017
CSE 373: Data Structures and Algorithms Pep Talk; Algorithm Analysis Riley Porter Announcements Op4onal Java Review Sec4on: PAA A102 Tuesday, January 10 th, 3:30-4:30pm. Any materials covered will be posted
More informationReview Asympto&c Bounds
Objec&ves Review: Asympto&c running &mes Classes of running &mes Implemen&ng Gale-Shapley algorithm Office hours: Today, 2:35-2:55, 5-5:50 p.m. Thursday: 1 5 p.m. Faculty Candidate Talk - Today at 4 p.m.
More informationAsymptotic Analysis. Thomas A. Anastasio. January 7, 2004
Asymptotic Analysis Thomas A. Anastasio January 7, 004 1 Introduction As a programmer, you often have a choice of data structures and algorithms. Choosing the best one for a particular job involves, among
More informationCIS 121 Data Structures and Algorithms with Java Spring Big-Oh Notation Monday, January 22/Tuesday, January 23
CIS 11 Data Structures and Algorithms with Java Spring 018 Big-Oh Notation Monday, January /Tuesday, January 3 Learning Goals Review Big-Oh and learn big/small omega/theta notations Discuss running time
More informationCSE373: Data Structures and Algorithms Lecture 2: Math Review; Algorithm Analysis. Hunter Zahn Summer 2016
CSE373: Data Structures and Algorithms Lecture 2: Math Review; Algorithm Analysis Hunter Zahn Summer 2016 Today Finish discussing stacks and queues Review math essential to algorithm analysis Proof by
More informationAsymptotic Analysis 1
Asymptotic Analysis 1 Last week, we discussed how to present algorithms using pseudocode. For example, we looked at an algorithm for singing the annoying song 99 Bottles of Beer on the Wall for arbitrary
More informationMidterm Examination. STA 215: Statistical Inference. Due Wednesday, 2006 Mar 8, 1:15 pm
Midterm Examination STA 215: Statistical Inference Due Wednesday, 2006 Mar 8, 1:15 pm This is an open-book take-home examination. You may work on it during any consecutive 24-hour period you like; please
More informationMenu. Lecture 2: Orders of Growth. Predicting Running Time. Order Notation. Predicting Program Properties
CS216: Program and Data Representation University of Virginia Computer Science Spring 2006 David Evans Lecture 2: Orders of Growth Menu Predicting program properties Orders of Growth: O, Ω Course Survey
More informationAlgorithms, Design and Analysis. Order of growth. Table 2.1. Big-oh. Asymptotic growth rate. Types of formulas for basic operation count
Types of formulas for basic operation count Exact formula e.g., C(n) = n(n-1)/2 Algorithms, Design and Analysis Big-Oh analysis, Brute Force, Divide and conquer intro Formula indicating order of growth
More informationLogarithmic and Exponential Equations and Change-of-Base
Logarithmic and Exponential Equations and Change-of-Base MATH 101 College Algebra J. Robert Buchanan Department of Mathematics Summer 2012 Objectives In this lesson we will learn to solve exponential equations
More information2. ALGORITHM ANALYSIS
2. ALGORITHM ANALYSIS computational tractability asymptotic order of growth survey of common running times Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley http://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationCSC236 Week 4. Larry Zhang
CSC236 Week 4 Larry Zhang 1 Announcements PS2 due on Friday This week s tutorial: Exercises with big-oh PS1 feedback People generally did well Writing style need to be improved. This time the TAs are lenient,
More informationRunning Time Evaluation
Running Time Evaluation Quadratic Vs. Linear Time Lecturer: Georgy Gimel farb COMPSCI 220 Algorithms and Data Structures 1 / 19 1 Running time 2 Examples 3 Big-Oh, Big-Omega, and Big-Theta Tools 4 Time
More informationCOMP 182 Algorithmic Thinking. Algorithm Efficiency. Luay Nakhleh Computer Science Rice University
COMP 182 Algorithmic Thinking Algorithm Efficiency Luay Nakhleh Computer Science Rice University Chapter 3, Sections 2-3 Reading Material Not All Correct Algorithms Are Created Equal We often choose the
More informationCS 380 ALGORITHM DESIGN AND ANALYSIS
CS 380 ALGORITHM DESIGN AND ANALYSIS Lecture 2: Asymptotic Analysis, Insertion Sort Text Reference: Chapters 2, 3 Space and Time Complexity For a given problem, may be a variety of algorithms that you
More informationNorthwest High School s Algebra 1. Summer Review Packet
Northwest High School s Algebra 1 Summer Review Packet This packet is optional! It will NOT be collected for a grade next school year! This packet has been designed to help you review various mathematical
More informationData Structures and Algorithms
Data Structures and Algorithms Autumn 2018-2019 Outline 1 Algorithm Analysis (contd.) Outline Algorithm Analysis (contd.) 1 Algorithm Analysis (contd.) Growth Rates of Some Commonly Occurring Functions
More informationCS 4407 Algorithms Lecture 2: Growth Functions
CS 4407 Algorithms Lecture 2: Growth Functions Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline Growth Functions Mathematical specification of growth functions
More informationInformation Page. Desmos Graphing Calculator IXL Username: Password: gothunder
i Information Page Class Website: http://padlet.com/william_kaden/algebra2stem Has PDFs of assignments. Additionally they can sometimes be found on Skyward. Desmos Graphing Calculator http://www.desmos.com/
More informationMath 111: Final Review
Math 111: Final Review Suggested Directions: Start by reviewing the new material with the first portion of the review sheet. Then take every quiz again as if it were a test. No book. No notes. Limit yourself
More informationGeometry Summer Assignment 2018
Geometry Summer Assignment 2018 The following packet contains topics and definitions that you will be required to know in order to succeed in Geometry this year. You are advised to be familiar with each
More informationGalaxy Metallicity: What Oxygen Tells Us About The Lifecycles of Galaxies Designed by Prof Jess Werk, modified by Marie Wingyee Lau
Introduction Galaxy Metallicity: What Oxygen Tells Us About The Lifecycles of Galaxies Designed by Prof Jess Werk, modified by Marie Wingyee Lau Before stars and galaxies came into existence, the very
More informationIM 3 Assignment 4.3 : Graph Investigation Unit 4 Polynomial Functions
(A) Lesson Context BIG PICTURE of this UNIT: What is a Polynomial and how do they look? What are the attributes of a Polynomial? How do I work with Polynomials? CONTEXT of this LESSON: Where we ve been
More informationWe can see that f(2) is undefined. (Plugging x = 2 into the function results in a 0 in the denominator)
In order to be successful in AP Calculus, you are expected to KNOW everything that came before. All topics from Algebra I, II, Geometry and of course Precalculus are expected to be mastered before you
More informationMore on Asymptotic Running Time Analysis CMPSC 122
More on Asymptotic Running Time Analysis CMPSC 122 I. Asymptotic Running Times and Dominance In your homework, you looked at some graphs. What did you observe? When analyzing the running time of algorithms,
More informationDefinition of a Logarithm
Chapter 17 Logarithms Sec. 1 Definition of a Logarithm In the last chapter we solved and graphed exponential equations. The strategy we used to solve those was to make the bases the same, set the exponents
More information1 Useful identities related to summations
1 Chris Piech CS 109 Calculation Reference Sept 26, 2018 Autumn Handout by Mehran Sahami 1 Useful identities related to summations Since it may have been a while since some folks have worked with summations,
More informationCopyright 2000, Kevin Wayne 1
Chapter 2 2.1 Computational Tractability Basics of Algorithm Analysis "For me, great algorithms are the poetry of computation. Just like verse, they can be terse, allusive, dense, and even mysterious.
More informationAnalysis of Algorithms
Analysis of Algorithms Section 4.3 Prof. Nathan Wodarz Math 209 - Fall 2008 Contents 1 Analysis of Algorithms 2 1.1 Analysis of Algorithms....................... 2 2 Complexity Analysis 4 2.1 Notation
More informationwith the size of the input in the limit, as the size of the misused.
Chapter 3. Growth of Functions Outline Study the asymptotic efficiency of algorithms Give several standard methods for simplifying the asymptotic analysis of algorithms Present several notational conventions
More informationThis chapter covers asymptotic analysis of function growth and big-o notation.
Chapter 14 Big-O This chapter covers asymptotic analysis of function growth and big-o notation. 14.1 Running times of programs An important aspect of designing a computer programs is figuring out how well
More information3.1 Asymptotic notation
3.1 Asymptotic notation The notations we use to describe the asymptotic running time of an algorithm are defined in terms of functions whose domains are the set of natural numbers N = {0, 1, 2,... Such
More informationAnnouncements. CompSci 102 Discrete Math for Computer Science. Chap. 3.1 Algorithms. Specifying Algorithms
CompSci 102 Discrete Math for Computer Science Announcements Read for next time Chap. 3.1-3.3 Homework 3 due Tuesday We ll finish Chapter 2 first today February 7, 2012 Prof. Rodger Chap. 3.1 Algorithms
More informationCS Data Structures and Algorithm Analysis
CS 483 - Data Structures and Algorithm Analysis Lecture II: Chapter 2 R. Paul Wiegand George Mason University, Department of Computer Science February 1, 2006 Outline 1 Analysis Framework 2 Asymptotic
More information2.1 Computational Tractability. Chapter 2. Basics of Algorithm Analysis. Computational Tractability. Polynomial-Time
Chapter 2 2.1 Computational Tractability Basics of Algorithm Analysis "For me, great algorithms are the poetry of computation. Just like verse, they can be terse, allusive, dense, and even mysterious.
More informationAlgorithms. Grad Refresher Course 2011 University of British Columbia. Ron Maharik
Algorithms Grad Refresher Course 2011 University of British Columbia Ron Maharik maharik@cs.ubc.ca About this talk For those incoming grad students who Do not have a CS background, or Have a CS background
More informationAlgorithm efficiency can be measured in terms of: Time Space Other resources such as processors, network packets, etc.
Algorithms Analysis Algorithm efficiency can be measured in terms of: Time Space Other resources such as processors, network packets, etc. Algorithms analysis tends to focus on time: Techniques for measuring
More informationRATIONAL FUNCTIONS AND
RATIONAL FUNCTIONS AND GRAPHS ALGEBRA 5 INU0114/514 (MATHS 1) Dr Adrian Jannetta MIMA CMath FRAS Rational functions and graphs 1/ 20 Adrian Jannetta Objectives In this lecture (and next seminar) we will
More informationReteach Simplifying Algebraic Expressions
1-4 Simplifying Algebraic Expressions To evaluate an algebraic expression you substitute numbers for variables. Then follow the order of operations. Here is a sentence that can help you remember the order
More informationSemester Review Packet
MATH 110: College Algebra Instructor: Reyes Semester Review Packet Remarks: This semester we have made a very detailed study of four classes of functions: Polynomial functions Linear Quadratic Higher degree
More informationInstructor Notes for Chapters 3 & 4
Algebra for Calculus Fall 0 Section 3. Complex Numbers Goal for students: Instructor Notes for Chapters 3 & 4 perform computations involving complex numbers You might want to review the quadratic formula
More informationCSE 331 Winter 2018 Homework 1
Directions: - Due Wednesday, January 10 by 11 pm. - Turn in your work online using gradescope. You should turn in a single pdf file. You can have more than one answer per page, but please try to avoid
More information