Write a pseudo code for sorting the numbers in an array?
Answers were Sorted based on User's Feedback
Answer / prabhath
SelectionSort(A)
for i <- length[A]-1 downto 0
for j <- 0 to i
if (A[j]>MAX) // for descending, change this to MIN
MAX=A[j]
MAX_ID=j
temp=A[i]
A[i]=A[MAX_ID]
A[MAX_ID]=temp
Slow motion run of Selection Sort (Bold == sorted region):
5 1 3 2 4
4 1 3 2 5
1 3 2 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5 >> done
| Is This Answer Correct ? | 22 Yes | 14 No |
While using logic design, explain the various steps that r followed to obtain the desirable design in a well defined manner?
Explain the operation considering a two processor computer system with a cache for each processor.
What was your role in the silicon evaluation/product ramp? What tools did you use?
In what cases do you need to double clock a signal before presenting it to a synchronous state machine?
Draw a 6-T SRAM Cell and explain the Read and Write operations
Basic Stuff related to Perl?
In the design of a large inverter, why do we prefer to connect small transistors in parallel (thus increasing effective width) rather than lay out one transistor with large width?
Explain why present VLSI circuits use MOSFETs instead of BJTs?
Explain the working of differential sense amplifier?
Explain the difference between write through and write back cache.
For a single computer processor computer system, what is the purpose of a processor cache and describe its operation?
Have you studied buses? What types?