Welcome, Guest. Please Login or Register.
Home Help Search Login Register


Pages: 1
Send Topic Print
Computer Science Test (Read 1562 times)
uzi
Board Moderator
*


Together, To gather!

Posts: 57
Gender: male
Computer Science Test
28.01.2008 at 02:57:57
 
Hi, friends Smiley
I've tried to solve very well prepared GRE Computer Science Practice Booklet and recommend you taking the test too (70 questions). Please first download the test from
http://www.ets.org/Media/Tests/GRE/pdf/CompSci.pdf
 
I'd like to discuss the problems (that I found myself confused and failed to solve) numbered as shown below:
     [17 and 18] - About CPU architecture, Parallel processing, Instruction timings, etc...
     [20 and 21] - About cache memory's write-through&write-back policies...
     [33 and 34] - About instruction set, CPU pipeline, clock cycle, program execution time, Control Flow Graph...
     [36]            - Actually I solved it but do you now the shortest way that lead to the solution?
 
I think all 70 problems will help us "storming" our brains... (and they give us an idea of what we must know about Computer Science)
Have a good life Smiley

 
PS: There are answers to the questions...
Back to top
 
 

"The mind is not a vessel to be filled, but a fire to be kindled." ~ Plutarch
WWW uzi   IP Logged
roy
Administrator
*


from among the stars
will I bring thee
down...

Posts: 573
Gender: male
Re: Computer Science Test
Reply #1 - 28.01.2008 at 21:48:39
 
17 - the trick here is to spread your operations across as many registers as you can, and reduce interdependence of ops that follow each other immediately in the instruction pipeline. You get 6 cycles (5 ops) -- the minimum as it implies only one such dependence --if, for example u arrange the ops as follows:
1) R0*R1->R3 (1 cycle)
2) R1*R2->R5 (1 cycle)
3) R2*R3->R4 (1 cycle)
4) R3+R5->R6 (2 cycles -- the next op depends on output)
5) R4+R6->R7 (1 cycle)
 
18 - similar to above
 
20 - both arrays fit the cache so only the values of A will have to be written to memory
21 - same logic adapted to write-back
33 - plot graphical representation s of both procs
34 - attach probability to each path. E.g.,  
probability of U->V->Y is 1/4
U->V->X->Y is 1/12
etc.
Now, the probability of returning (once!) back to U is
(1/2+1/4)*2/3=1/2
hence the mathematical expectation of the number of returns back to U is 1/2+1/4+... = 1
Adding the initial execution of U we get 1+1=2
 
36 - reverse the circuit logic because then you will have fewer options: the output is 1 only when the input is 2, 3 and 7. Then negate the resulting simple expression and get the result. That is much easier than substitution.
 
 
 
Back to top
 
« Last Edit: 29.01.2008 at 02:34:15 by roy »  
WWW   IP Logged
uzi
Board Moderator
*


Together, To gather!

Posts: 57
Gender: male
Re: Computer Science Test
Reply #2 - 11.02.2008 at 01:22:26
 
Roy thank you for your explanations, I got them...
 
My ComSci.PDF score was 73%, now it's 94%...  Smiley
 
Roy do you advice a good book that covers (upper-intermediate or advanced level) nearly all of the contents listed at the pdf file pages 4-5?
Back to top
 
 

"The mind is not a vessel to be filled, but a fire to be kindled." ~ Plutarch
WWW uzi   IP Logged
Pages: 1
Send Topic Print