CSC165H1 Lecture Notes - Lecture 1: Texas State Highway Loop 1, Prut, Data Structure

39 views5 pages
30 Jul 2018
School
Course
Professor
cherryberry1035 and 38883 others unlocked
CSC165H1 Full Course Notes
3
CSC165H1 Full Course Notes
Verified Note
3 documents

Document Summary

Quick review (cid:1859)(cid:1857)(cid:882)(cid:4666)(cid:1858)(cid:4667)"(cid:1859) (cid:1858)" (cid:1859)(cid:4666)(cid:1866)(cid:4667) (cid:1855)(cid:1858)(cid:4666)(cid:1866)(cid:4667) (cid:1859) (cid:4666)(cid:1858)(cid:4667)"(cid:1859) (cid:1858)" (cid:1859)(cid:4666)(cid:1866)(cid:4667) (cid:1855)(cid:1858)(cid:4666)(cid:1866)(cid:4667) (cid:1859) (cid:4666)(cid:1866)(cid:4667)(cid:4666)(cid:1858)(cid:4667)g=f (cid:1855)(cid:2869)(cid:1858)(cid:4666)(cid:1866)(cid:4667)=(cid:1859)(cid:4666)(cid:1866)(cid:4667)=(cid:1855)(cid:2870)(cid:1858)(cid:4666)(cid:1866)(cid:4667) (cid:1859) (cid:882)(cid:4666)(cid:1866)(cid:2869)(cid:2868)(cid:2868)(cid:2868)(cid:4667) (cid:1859) (cid:882)(cid:4666)(cid:1866)(cid:2869)(cid:2868)(cid:2868)(cid:2868)(cid:4667) (cid:1859) (cid:1866) (cid:1859) (cid:1866)(cid:2868). (cid:2873) (cid:1859)+(cid:883)(cid:882)(cid:1859)(cid:1866) In term of input size as the input gets large. Input size: formula the # of bits required to represent the input informally, use approximately. Step: a (cid:271)lo(cid:272)k of (cid:272)ode whose (cid:272)ontinues does"t depend on the input size. Examples: arithmetic +, , ,/,, compassion ,=, variable =(cid:887) And lookup: input, function call and return. Find the asymptotic (theta) runtime of the following function. We can treat the entire body as a single step. (cid:1856)(cid:1857)(cid:1858) (cid:1858)(cid:4666)(cid:1866):(cid:1861)(cid:1866)(cid:1872)(cid:4667) (cid:1861)(cid:1866)(cid:1872) It does not depend on how large (cid:1866) is ! The number of step is 1 (for all (cid:1866)) Csc 165: recursive function csc 216. When given a loop do tusk thing (cid:1866: identify # of iteration, identify # of step per iteration. Ex. (cid:1856)(cid:1857)(cid:1858):(cid:1858)(cid:2870)(cid:4666)(cid:1866)(cid:4667) (cid:1858)(cid:1867)(cid:1870) (cid:1861) (cid:1861)(cid:1866) (cid:1870)(cid:1866)(cid:1859)(cid:1857) (cid:4666)(cid:1866)(cid:4667): (cid:1868)(cid:1870)(cid:1861)(cid:1866)(cid:1872) (cid:4666)(cid:4667)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents