19 views

Uploaded by Paul Jones

- BTech (CSE) Curriculum 2012-2013
- 00-introduction.pdf
- Screen Exits
- Computer Science &Amp
- Dmi Snmp Mapping and Extension Agent
- National Conference on Intellient Computi
- Sop Computer Science Cs
- clustering algorithm
- QAch7 Route Spanning
- Factor Relativ Ajustat de Influenta Reviste
- firdariyyat-table.pdf
- ICCSEA-2015
- Non Dominated Sorting
- Cobi Media Ugmex Attachments Veracruz17
- frtn2
- Admission-Notice-41-03-06-2015
- Menu_635042684164290240_be_cs_new_co_stru_13_jp.pdf
- June Final Exam Session Academic Year 2015 2016
- 223
- 051021

You are on page 1of 7

NAME: __________________________________________________________________________

RUID:___________________________________________________________________________

Electronic Devices are not permitted during the quiz. These include but are not restricted to calculators,

computers and cell phones.

No communication between students or anyone outside of class is permitted during the quiz.

Textbooks, notes and any other written materials are not permitted during the quiz.

INSTRUCTED TO DO SO

1. In each blank, write the letter of the formula that most closely provides the number of iterations

performed by the corresponding loop. Ignore any requirement to use a ceiling or floor function.

Note that an option may be used zero or more times (i.e. once, more than once, not at all).

A) lg(x0 a)

B) lg(a - x0)

C) lg(a)

D) lg(x0)

E) lg(x0 / a)

F) lg(a / x0)

G) logx0(a)

H) loga(x0)

I) lg(logx0(a))

J) lg(loga(x0))

K) loga(x0)/lg(a)

L) a - x0

M) logx0(a)/lg(a)

N) logx0(a)/lg(x0)

O) x0 + a

P) x0 a

Q) -lg(logx0(a))

R) -lg(loga(x0))

S) x0 ^ a

T) a ^ x0

U) -logx0(a)/lg(a)

V) -logx0(a)/lg(a)

W) x0

X)

____________ a)

x

x0

while x > a

x

x - 1

end

where:

x0 and a are integers

a < x0

____________ b)

x

x0

while x < a

x

2x

end

where:

x0 and a are real numbers

0 < x0 < a

____________ c)

x

x0

while x < a

x

x / 2

end

where:

x0 and a are real numbers

0 < a < x0 < 1

____________ d)

x

x0

while x < a

x

x2

end

where:

x0 and a are real numbers

1 < a < x0

____________ e)

x

x0

while x > a

x

end

where:

x0 and a are real numbers

1 < a < x0

2. Find the least integer n such that f(x) is O(xn) for each of these functions. If no such n is

possible, write Impossible.

_____________ h) f(x) =

_____________ i) f(x) =

_____________ j) f(x) = x5 (

+ 1/x)

3. Recall that to establish a big- relationship, we find C and k such that f(x) C g( )

for x > k. Assume C, k and x are real numbers. For each of the following blanks, write True if

the given C and k establish a big- relationship. Otherwise, write False.

a) f(x) = x + 0.5,

f(x) = (x)

_____________

C = 1, k = 1

_____________

C = 0.5, k = 1

_____________

C = 1.5, k = 3

_____________

C = 0.1, k = 0

b) f(x) = x2 + x,

f(x) = (x2)

_____________

C = 2, k = 0

_____________

C = 2, k = 1

_____________

C = 2, k = 2

_____________

C = 0.5, k = 2

c) f(x) = 2x + 2x,

f(x) = (2x)

_____________

C = 1, k = 1

_____________

C = 2, k = 1

_____________

C = 2, k = 2

_____________

C = 0.5, k = 2

d) f(x) = lg(x) + 4,

_____________

C = 1, k = 1

_____________

C = 1, k = 16

_____________

C = 2, k = 16

_____________

C = 1, k = 256

e) f(x) = x! + 2x,

f)

f(x) = (lg(x))

f(x) = (x!)

_____________

C = 1, k = 1

_____________

C = 1/4, k = 2

_____________

C = 0.5, k = 4

_____________

C = 2, k = 0

f(x) = 7 + 1/x,

f(x) = (1)

_____________

C = 7, k = 0

_____________

C = 7, k = 1

_____________

C = 8, k = 0

_____________

C = 8, k = 1

4. What is the effect in the time required to solve a problem when you increase the size of the input

from n to 2n, assuming that the number of milliseconds the algorithm uses to solve the problem

with input size n is each of the quantities expressed below? Let W1 denote the runtime with input

size 2n and let W0 denote the runtime with input size n. In each blank, write the corresponding

letter from the table below. Note that an option may be used zero or more times (i.e. once, more

than once, not at all).

A) W1 - W0 = 0

B) W1 - W0 = 1

C) W1 - W0 = 2

D) W1 - W0 = n

E) W1 - W0 = 2n+1

F) W1 - W0 = n2

G) W1 - W0 = lg((1+lg(n))/lg(n)

H) W1 - W0 = lg(1+lg(n))

I) W1 - W0 = lg(n)

J) W1 - W0 = lg(n+1) lg(n)

K) W1 / W0 = 2

L) W1 / W0 = 4

M) W1 / W0 = 2n

N) W1 / W0 = 2n+1

O) W1 / W0 = lg(n)

P) W1 / W0 = 2n

Q) W1 / W0 = n2

R) W1 / W0 = lg(n2)

S) W1 / W0 = 2 + 2/lg(n)

T) W1 / W0 = 2 + lg(n)

U) W1 / W0 = 2 lg(n)

___________ a) 2

___________ b) lg n

___________ c) n

___________ d) 2n

___________ e) n lg n

___________ f) n2

___________ g) 2n

Scratch Paper

- BTech (CSE) Curriculum 2012-2013Uploaded byShane Bridges
- 00-introduction.pdfUploaded byYunqian Cai
- Screen ExitsUploaded byapi-3738703
- Computer Science &AmpUploaded byabhi_?1988
- Dmi Snmp Mapping and Extension AgentUploaded byMr. Anidra Katiyar
- National Conference on Intellient ComputiUploaded byBritto Ebrington Ajay
- Sop Computer Science CsUploaded byNaveen Kashyap
- clustering algorithmUploaded byGayatri Joshi
- QAch7 Route SpanningUploaded bynwsltr
- Factor Relativ Ajustat de Influenta RevisteUploaded byrock_music
- firdariyyat-table.pdfUploaded byGuilherme Alves Pereira
- ICCSEA-2015Uploaded byCS & IT
- Non Dominated SortingUploaded bySourav Das
- Cobi Media Ugmex Attachments Veracruz17Uploaded byScarlet DC
- frtn2Uploaded byabhi71127112
- Admission-Notice-41-03-06-2015Uploaded byrakeshambasana
- Menu_635042684164290240_be_cs_new_co_stru_13_jp.pdfUploaded byPrakhar Bhargava
- June Final Exam Session Academic Year 2015 2016Uploaded bySipos Claudiu
- 223Uploaded byZia Rehman
- 051021Uploaded bysriashokcute
- Risk AssessmentUploaded bykena wendimu
- Unikl Miit BseUploaded byundisputedcode
- FDL Data LoaderUploaded byMirza Rizwan
- CCSIT - 2015Uploaded byCS & IT
- final draftUploaded byapi-272664890
- CSAC Criteria 2011 v1Uploaded bykhaleel_anwar2000
- previous coursesUploaded byapi-448416255
- J-87-11 Paper - IIIUploaded byabinayamalathy
- Collection of ICC ProgramsUploaded bysam_003
- B+nov_dec_2010.pdfUploaded byDaniela Elena Mihaila

- 20121206_quiz_10_solutionsUploaded byPaul Jones
- 20121115 Quiz 7a SolutionsUploaded byPaul Jones
- 20121129_quiz_9aUploaded byPaul Jones
- 20121129 Quiz 9b SolutionsUploaded byPaul Jones
- 20121115_quiz_7bUploaded byPaul Jones
- 20121115_quiz_7aUploaded byPaul Jones
- 20121120_quiz_8bUploaded byPaul Jones
- 20121120_quiz_8bUploaded byPaul Jones
- 20121108 Quiz 6b SolutionsUploaded byPaul Jones
- 20121129 Quiz 9a SolutionsUploaded byPaul Jones
- 20121115 Quiz 7b SolutionsUploaded byPaul Jones
- 20121206_quiz_10Uploaded byPaul Jones
- 20121129_quiz_9bUploaded byPaul Jones
- 20121120 Quiz 8a SolutionsUploaded byPaul Jones
- 20121120 Quiz 8a SolutionsUploaded byPaul Jones
- 20121025 Quiz 4r SolutionsUploaded byPaul Jones
- 20121011 Quiz 4a SolutionsUploaded byPaul Jones
- 20121108_quiz_6aUploaded byPaul Jones
- 20121018 Quiz 5b SolutionsUploaded byPaul Jones
- 20121011_quiz_4bUploaded byPaul Jones
- 20121108 Quiz 6a SolutionsUploaded byPaul Jones
- 20121004_quiz_3bUploaded byPaul Jones
- 20121004 Quiz 3a SolutionsUploaded byPaul Jones
- 20121025_quiz_4rUploaded byPaul Jones
- 20121018_quiz_5aUploaded byPaul Jones
- 20121018_quiz_5aUploaded byPaul Jones
- 20121011 Quiz 4b SolutionsUploaded byPaul Jones
- 20121018 Quiz 5a SolutionsUploaded byPaul Jones
- 20121011_quiz_4a.pdfUploaded byPaul Jones

- Notepad Tricks.txtUploaded byKrishna Kant Bansal
- Shiva and Bannari Gap StudyUploaded byRaj Kumar
- Memo Rex Lock User Manual v224-CUploaded bytheappler1
- Transport Layer SecurityUploaded byCautare Automata
- whentopostslidesharepdf-140710170008-phpapp02.pdfUploaded byCười Hehe
- Materials Management.docUploaded bymanjupadma
- Final Report ZbasicUploaded byibrahimos2002
- README ID5 Tech Engine Based Games OptimisationUploaded byDejan Antanasijevic
- ComputerUploaded byabid ali
- Steering GeometryUploaded byPratik Ghag
- Labtec SOW Implementation SILVERUploaded byDaniel Sherwood
- Assignment 1Uploaded byRajesh Ramesh
- OSCM-2014Uploaded byjosué alves
- Release Notes EMDK for Android v7.3Uploaded byDIEGO
- Atoll_3-3-0_LTE.pdfUploaded byHAKIM603
- Rinstrum R300-627Uploaded byMeraki Daniel
- Comparison in WekaUploaded bySamit Kumar
- Design History File (DHF), Device Master Record (DMR), Device History Record (DHR) and Technical File (TF) - Regulatory Documents ExplainedUploaded bysupport4250
- Adding a File Chooser to a Java ApplicationUploaded bynwakegoi
- Resume Lloyd pUploaded byMatthew Rodriguez
- c01_revit_2009_evalUploaded byJonas hernandez
- Wfiiniraf.psUploaded bysrtaez
- 1z0-542Uploaded byMosunmola
- Performance Evaluation of Ant Colony Optimization Based Rendezvous Leach Using For Mobile Sink Based WSNsUploaded byIJERD
- 145989555-1300-User-Manual.pdfUploaded byAtabat Adudu
- Amdahl's LawUploaded byBMS_SOFTGUY
- qwertyuiUploaded byRahul Bhansali
- FAN UL(2012.01.13)Uploaded byOscar Ojeda
- ITM Theory NotesUploaded bypearku
- Gs1 General Specifications-V12Uploaded byMartijn Nijtram