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 |
If the current through the poly is 20nA and the contact can take a max current of 10nA how would u overcome the problem?
What happens to delay if you increase load capacitance?
Draw the timing diagram for a SRAM Read. What happens if we delay the enabling of Clock signal?
Explain how binary number can give a signal or convert into a digital signal?
Explain why present VLSI circuits use MOSFETs instead of BJTs?
Process technology? What package was used and how did you model the package/system? What parasitic effects were considered?
How can you model a SRAM at RTL Level?
Given a circuit and asked to tell the output voltages of that circuit?
1 Answers Intel, Omega Healthcare,
Design an 8 is to 3 encoder using 4 is to encoder?
In what cases do you need to double clock a signal before presenting it to a synchronous state machine?
Are you familiar with the term MESI?
How logical gates are controlled by boolean logic?