# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

1 Page

### tut01

Course: COMP 108, Fall 2009
School: East Los Angeles College
Rating:

Word Count: 257

#### Document Preview

Algorithmic COMP108 Foundations Tutorial 1 25 January 2008 1. Simplify the following mathematical expressions (a) (x - 2)(x + 1) + x + 2 (b) x2 + 2x + 1 (d) 2 + log2 (x/4) 2. Give the trace table and the output of the following algorithm for m = 16. input m count = 0 x=1 while x &lt; m do begin x = x2 count = count + 1 end output count What is the output for general m that is a positive power of 2 (i.e., m =...

Register Now

#### Unformatted Document Excerpt

Coursehero >> California >> East Los Angeles College >> COMP 108

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Algorithmic COMP108 Foundations Tutorial 1 25 January 2008 1. Simplify the following mathematical expressions (a) (x - 2)(x + 1) + x + 2 (b) x2 + 2x + 1 (d) 2 + log2 (x/4) 2. Give the trace table and the output of the following algorithm for m = 16. input m count = 0 x=1 while x < m do begin x = x2 count = count + 1 end output count What is the output for general m that is a positive power of 2 (i.e., m = 2, 4, 8, 16, 32, . . .)? 3. Rewrite the following for-loop into a while loop. input m x=0 for i = 1 to m do begin x=x+i end output x 4. Rewrite the above for-loop into a repeat loop. 5. Write a pseudo code using a while-loop to (1) input two numbers x and y; (2) output all multiples of 3 between x y and inclusively. For example, if x = 1 and y = 100, then your pseduo code should output 3 6 9 ... 99. 6. [Puzzle] A farmer is standing on the left side of the river and with him are a wolf, a goat and a box of cabbages. In the river there is a small boat. The farmer wants to cross the river with all the three items that are with him. There are no bridges and in the boat there is only room for the farmer and one item. If...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Sveriges lantbruksuniversitet - IR - 1590
Playful Play with Games: Linking Level Editing to Learning in Art and DesignMaia EngeliPlanetary Collegium University of Plymouth UK maia@enge.li ABSTRACT The title Playful Play with Games refers to the possibility of creative involvement with game
East Los Angeles College - COMP - 108
AlgorithmicFoundations COMP108COMP108 AlgorithmicFoundationsDivideandConquerPrude Wong ncehttp:/www.csc.liv.ac.uk/~pwong/te aching/com p108AlgorithmicFoundations COMP108DivideandConquerAlgorithmicFoundationsLearningoutcomesCOMP108 U
East Los Angeles College - COMP - 108
Algorithmic Foundations COMP108COMP108 Algorithmic FoundationsAlgorithm efficiency + Searching/SortingPrudence Wonghttp:/www.csc.liv.ac.uk/~pwong/teaching/comp108Learning outcomes Ableto carry outAlgorithmic Foundations COMP108sim asympt
East Los Angeles College - COMP - 108
Algorithmic Foundations COMP108COMP108 Algorithmic FoundationsIntroduction + Mathematical InductionPrudence Wonghttp:/www.csc.liv.ac.uk/~pwong/teaching/comp108/200708Algorithmic Foundations COMP108Module information .Teaching TeamDr Prud
East Los Angeles College - COMP - 108
AlgorithmicFoundations COMP108COMP108 AlgorithmicFoundationsGraphTheoryPrude Wong ncehttp:/www.csc.liv.ac.uk/~pwong/te aching/com p108Learningoutcomes Ableto te llAlgorithmicFoundations COMP108what is an undire d graph and what is a cte
East Los Angeles College - COMP - 108
Algorithmic Foundations COMP108COMP108 Algorithmic FoundationsDynamic ProgrammingPrudence Wonghttp:/www.csc.liv.ac.uk/~pwong/teaching/comp108Algorithmic Foundations COMP108Dynamic programmingan efficient way to implement some divide and
Sveriges lantbruksuniversitet - ECON - 305
Problem Set #5 Answer KeyEconomics 305: Macroeconomic Theory Spring 20071Chapter 9, Problem #1There are two eects of an increase in the depreciation rate. First, given the marginal product of capital in period two, M PK , the net marginal prod
East Los Angeles College - COMP - 108
AlgorithmicFoundations COMP108COMP108 AlgorithmicFoundationsGreedymethods Prudence Wonghttp:/www.csc.liv.ac.uk/~pwong/teaching/comp108AlgorithmicFoundations COMP108GreedymethodsLearningoutcomes Unde rstand whatAlgorithmicFoundations COMP
Sveriges lantbruksuniversitet - ECON - 305
Econ 305 Spring 2008 Tutorial Notes 2Chapter 3 3. Correlation a) Positive. b) Negative. c) Negative. d) Positive. e) Politicians would certainly argue that the correlation is positive. Others may be less sure. f) 4. Leads and Lags. a) The cleanlines
East Los Angeles College - COMP - 108
0 1 0 1 1 0 0 0 01 0 1 0 0 1 0 0 00 1 0 0 0 0 0 0 01 0 0 0 0 0 1 1 01 0 0 0 0 0 0 0 00 1 0 0 0 0 0 0 10 0 0 1 0 0 0 0 00 0 0 1 0 0 0 0 00 0 0 0 0 1 0 0 0
East Los Angeles College - COMP - 108
30 40 30 3050 10 20 1040 20 40 3010 50
Hudson VCC - BOT - 006
Soi l sthe una ppr eci a ted na tur a l r esour ceFr ed M a gdoff D ept. Pl a nt &amp; Soi l Sci enceYou ask me to pl ow the gr ound. Shal l I take a kni fe and tear my mother s br east? Native American ChiefM any a hi l l si de do the tor r ent
East Los Angeles College - COMP - 108
5 2 15 15 4 4 119 1 3 24 7
East Los Angeles College - COMP - 108
0 0 0 1 1 00 0 1 1 0 00 1 0 0 0 01 1 0 0 0 01 0 0 0 0 10 0 0 0 1 0
East Los Angeles College - COMP - 108
0 0 0 1 1 10 0 1 1 0 00 1 0 0 0 01 1 0 0 0 01 0 0 0 0 11 0 0 0 1 0
East Los Angeles College - COMP - 108
COMP108 Algorithmic Foundations Examination 2005-06Suggested solutions Question 1 Solution1A. Adjacency matrix of G: a b c d e f a 0 1 1 1 0 0 b 1 0 1 0 1 1 c d e 1 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 1 1 f 0 1 1 1 1 0PSfrag replacements1B. Greedy me
Allan Hancock College - PILACCAR - 2003112003
PRIMARY INDUSTRIES LEVIES AND CHARGES COLLECTION AMENDMENT REGULATIONS 2003 (NO. 11) 2003 NO. 305 PRIMARY INDUSTRIES LEVIES AND CHARGES COLLECTION AMENDMENT REGULATIONS 2003 (NO. 11) 2003 NO. 305 - TABLE OF PROVISIONS1. Name of Regulations 2
Sveriges lantbruksuniversitet - M - 202
lab #9 worksheet-- make a new folder for week 9- files for this week: w9edf1.m w9edf2.m w9edf3.m- start matlab &amp; change to the week 9 folderKEY QUESTION: what is the meaning ofthose goodness-of-fit quantities, W^2 and r^2?warm-u
Sveriges lantbruksuniversitet - APMA - 930
Integral Equations Arising From the Incompressible Navier-StokesBryan QuaifeDepartment of Mathematics, SFUthe boundary data. However, I am able to impose either Neumann or Dirichlet boundary data for the full fourth order problem with an integral
Sveriges lantbruksuniversitet - M - 251
Simon Fraser UniversityMATH 251: Calculus III Course Outline Fall 2008Instructor: Office: Office Hours: Workshop Hours: Email: Course Web page: Dr. David Muraki SC K10538 by appointment Mondays 1:30-2:30 in AQ 4110 muraki@sfu.ca newton.science.sfu.
Sveriges lantbruksuniversitet - M - 495
Homework #01 MATH495/STAT490 Introduction to Probability Models submit your write-up Wednesday 17 September. participation in webct discussions is encouraged. please respect page limits &amp; remember to Guidelines for Reports.A) Warm-ups from Ros
Sveriges lantbruksuniversitet - M - 462
March 22, 2004 PATENTSFor Speed in Swimsuits, Add BumpsBy TERESA RIORDANARLIER this month at Pressure, a Manhattan nightclub, buff Olympic swimming hopefuls - including 18-year-old Michael Phelps, who won four gold medals at last year's World Ch
Wilfrid Laurier - EDER - 603
Patriarchal Structuralist Rights and Freedoms Liberal Feminism Marxist/ socialist Feminism Critical Theory Enlightenment Essential Feminism Postmodern Radical Feminism Feminist Research Types of FeminismI think, therefore I am Strives to interpret
Wilfrid Laurier - EDER - 603
A Hermeneutic Circle of Epistemologies Reading Ushers (1996) article critiquing epistemological assumptions definitely keeps me travelling on the hermeneutic circle. I keep going around and around these paradigms. I empathize with one paradigm, only
Wilfrid Laurier - EDER - 603
intertextual linguistic constructhistory is less than the past epistemologydiscourse interpretiveWhat History Isinterpretsvalues, positions, ideologies,hermeneutic tied to the historianRemember Hermesrepresentative of the views of the
Wilfrid Laurier - EDER - 603
A full circle This course has been a fantastic experience for me. I finally feel like I understand. Not only do I understand, but I think I can do this. I know that I have to do this. Last year when I started my PhD, I considered words like epistemol
Wilfrid Laurier - EDER - 603
Did I Ever Leave Home?I am scared of getting too excited, but Biesta &amp; Burbules (2003) really makes me feel like I am coming home. Dewy is often cited as the founding theorist for many of my distance education models. I knew of Dewey well before I
Wilfrid Laurier - EDER - 603
Narrative, Biographical and StoryBetter Balance of self and participant Autobiographical Biographical Where is the participants voice Smithbattle (1994) Story is well toldHumans can only interpret themselves within their world Stroobants (2005) A
Allan Hancock College - APTLB - 2001371
1998-1999-2000-2001 The Parliament of the Commonwealth of Australia HOUSE OF REPRESENTATIVES Presented and read a first time Air Passenger Ticket Levy (Collection) Bill 2001 No. , 2001 (Transport and Regional Services) A Bi
Wilfrid Laurier - EDER - 677
Synchronous tools1Evaluation of Synchronous Communication ToolsKaren Chisvin Krista Poscente Denis BeaulieuEDER 677 Distributed Learning University of Calgary For Dr. Qing LiTuesday, October 12, 2004Synchronous tools2Abstract We eval
Wisc La Crosse - MATH - 145
Math 145January 23, 2007Outline1. 2. 3.Recap Other Sampling Designs Graphical methodsStatistics is the science of collecting, analyzing, interpreting, and presenting data.Two kinds of Statistics:1. 2.Descriptive Statistics. Inferenti
Wilfrid Laurier - EDER - 677
Kristas EDER 677 Journal Entry for Session 11: Instructional and Digital DesignBalancing Synchronous Activities with Distance Educations Flexibility Diverse Populations Before I read Qing and Brads paper (Li &amp; Johnson, 2004) I had not thought of ou
Wilfrid Laurier - EDER - 677
Notes about Toxic Mold Course on Blackboard Course is a continuing education course for architects registered in Ontario. OAA Continuing Education (OAA ConEd) requires 100 points over 2 years, 80 selfdirected and 20 OAA directed. OAA-directed oppo
Wilfrid Laurier - EDER - 677
Kristas EDER 677 Journal Entry for Session 8: Communities OnlineEvaluation of the Breast Cancer Action of Nova Scotia I chose to evaluate the Breast Cancer Action of Nova Scotia website. Unfortunately the visual design of this website detracts from
East Los Angeles College - COMP - 320
SoftwareDevelopmentTools10COMP320 DrVladimirSazonov Ant,TestingandJUnit(2)These slides are mainly based on Java Development with Ant - E. Hatcher &amp; S.Loughran. Manning Publications, 2003JUnitPrimer(withANT)continuedMoreonwritingatestcase Reca
East Los Angeles College - COMP - 201
Software TestingLecture 28&amp;29Software Engineering, COMP201Slide 1Defect testingqTesting programs to establish the presence of system defectsSoftware Engineering, COMP201Slide 2Objectivesqq qqTo understand testing techniques tha
Wilfrid Laurier - EDER - 677
Teacher Training for Mathematics Teachers Teaching at a DistanceKrista Poscente ID 802986 Assignment #1 EDER 677 Distributed Learning University of Calgary For Dr. Qing Li Tuesday, October 12, 2004Mathematics teacher training2Teacher Trainin
Wilfrid Laurier - EDER - 677
Krista's EDER 677 Journal Entry for Session 3: Tools for LearningAsynchronous learningMy task is to make a journal entry about Swan, Shea, Fredericksen, Pelz and Maher's (2000) article about the virtual classroom. I found this article an interest
Wilfrid Laurier - EDER - 677
Krista's EDER 677 Journal Entry for Session 6: Synchronous Asynchronous InteractionsThe Frustration of Evaluating Synchronous Tools Our group found the exercise of evaluating three synchronous tools very challenging. First we needed products that d
Wilfrid Laurier - EDER - 677
Kristas EDER 677 Journal Entry for Session 7: V-Class sessionV-Class This was the first time I had ever experienced V-class. I was very impressed. I like how Qing had a tech support person there to manage the students that were having difficulty. I
Wilfrid Laurier - EDER - 677
Kristas EDER 677 Journal Entry for Session 12: Administrative DetailsAdministrative Details The Stuff That Kills You I could not agree more with the subtitle of this weeks topic. When I was an online course developer, it certainly was the administ
Wilfrid Laurier - EDER - 677
Online Learning Platform1Rubric for Online Learning Platform and Evaluation of WebCTKaren Chisvin Krista PoscenteEDER 677 Distributed Learning University of Calgary For Dr. Qing LiThursday, November 18, 2004Online Learning Platform2I
Wilfrid Laurier - EDER - 677
Krista EDER 677 Journal Entry for Session 5: Universal DesignUniversal Design Kinash's power point and the ADE site on Accessibility in distance education provide insight into the needs of individuals with disabilities. While I have been aware of t
Allan Hancock College - HBAB - 2008218
[Page Break] New South WalesHome Building Amendment Bill 2008Contents Page 1 Name of Act
East Los Angeles College - COMP - 201
Software Engineering COMP 201 Design methodology Lectures 15 and 16Software Engineering, COMP201Slide 1Software DesignDeriving a solution which satisfies software requirementsSoftware Engineering, COMP201Slide 2Stages of Design Problem
Allan Hancock College - HBAB - 2008218
First printNew South WalesHome Building Amendment Bill 2008Explanatory noteThis explanatory note relates to this Bill as introduced into Parliament.Overview of BillThe object of this Bill is to amend the Home Building Act 1989 (the Act) as f
East Los Angeles College - COMP - 320
SoftwareDevelopmentTools6COMP320 DrVladimirSazonov Ant:StructuredBuildThese slides are mainly based on Java Development with Ant - E. Hatcher &amp; S.Loughran. Manning Publications, 2003ImposingStructureInthebuildprocessdiscussedintheprevious lectu
East Los Angeles College - COMP - 320
Software Development Tools 11Ant, Testing and JUnit (3) Capturing test resultsCOMP320 Dr Vladimir SazonovThese slides are mainly based on &quot;Java Development with Ant&quot; - E. Hatcher &amp; S.Loughran. Manning Publications, 2003Capturing test resultsTh
East Los Angeles College - PHYS - 210
RecapofPHYS1101lecture PhysicalOptics4lecturesEMspectrumandcolour Lightsources Interferenceanddiffraction PolarizationTOPICS LensAberrations3lecturesSphericalaberrations Coma,astigmatism,fieldcurvature,distortion Chromaticaberrations Telescop
East Los Angeles College - PHYS - 258
How to use these equations?Three methods to evaluate the Fourier Coefficients of a Fourier Series Define a function to evaluate:1 f0Af( t )10A.f0t T10T02 . . f0This is a sawtooth wave Time period of waveT = 0.1Note: This fun
Allan Hancock College - FAR - 20022002
The legislation that is being viewed is valid for Sessional. Fisheries (Abalone) Amendment Rules 2002 (S.R. 2002, No. 144)- CONTENTS Fisheries (Abalone) Amendment Rules 2002
McGill - MUMT - 611
Audio Watermarkingpresented byDenis LebelPresentation Outline Introduction Systems Techniques Applications Discussion References MUMT611: Music Information Acquisition, Preservation, and Retrieval2 / 13IntroductionIdea: Embeddi
Wilfrid Laurier - RELS - 205
Selected Lecture Notes Provided by Jenn Crack Ludwig Feuerbach (1804-1872) Wrote: The Essence of Christianity (1840) Born: Landshut, Bavaria Schooled in: Ansbach University: Heidelberg (the 1950's film The student Prince was filmed there) - Grew up i
Wilfrid Laurier - RELS - 205
Selected Lecture Notes Provided by Jenn Crack Hegel (1770-1830)Lived in Berlin History of Philosophy before Hegel 2 Plato 3 Aristotle 4 Cicero 6 Hume 5 Aquinas 1 Socrates - Philosophy is sequential and must be thought of in that sequence because of
East Los Angeles College - PHYS - 210
Student name: . Date: . OPTICS FOR ORTHOPTICS PHYS210 ASSIGNMENT 4 (1 3-hour laboratory session)Partner: .2004/2005You will investigate three types of lens aberrations: chromatic aberrations, oblique astigmatism and distortion. A) Longitudi
East Los Angeles College - PHYS - 210
TOPICS Recap of PHYS110 - 1 lecture Physical Optics - 4 lecturesEM spectrum and colour Light sources Interference and diffraction Polarization Lens Aberrations - 3 lecturesSpherical aberrations Coma, astigmatism, field curvature, distortion Chr
East Los Angeles College - PHYS - 113
PHYS113 WORKSHEET WEEK 9The deadline for this work is 5pm Monday 8th of DecemberThis weeks problem uses Mathcad to study the statistics of random distributions. Understanding these ideas is important in a number of physics applications e.g. the re
East Los Angeles College - PHYS - 113
PHYS113 WORKSHEET WEEK 3The deadline for handing in this work is Monday, October 27th 1. The worksheet this week involves the analysis of a laboratory experiment. You are asked to enter the data into Excel, manipulate them into a given form that can
East Los Angeles College - PHYS - 113
PHYS113 WORKSHEET WEEK 2In this worksheet, you will add to the spreadsheet you started last week and add a plot of the trajectory of an object including air resistance. This will demonstrate the numerical solution of a problem that would not be easy
East Los Angeles College - PHYS - 113
PHYS113 WORKSHEET 4 The deadline for this work is 5pm, Monday, November 3rdThis week's assignment uses Word to produce a short report on some topic and include graphics, equations and properly attribute the information. By the end of the worksheet y
Allan Hancock College - SAAROGLB - 2007665
House of Assembly-No 43As laid on the table and read a first time, 21 June 2007South AustraliaStatutes Amendment (Investigation and Regulationof Gambling Licensees) Bill 2007A BILL FORAn Act to amend the Authorised Betting Operations Act 20