Wednesday, July 7, 2010
CS502 GDB solution
Technically all recursive computations are done iteratively at some level so the answer would HAVE to be yes (since computers can only do a finite number of computations at a time). some recursive functions like full tree traversals however if you wanted to do iteratively (in your source code instead of at a processor level) you'd have to implement your own fake call stack, which would be both messier and negate any performance gain.
CS502 GDB
Every recursive problem has an iterative solution. Do you agree or not? Justify your answer.
Please reply to this post
Please reply to this post
Monday, July 5, 2010
Eng101 solution
Eng101 Ass Sol
1. The teacher walked into the classroom, greeted the students, and took attendance.
Simple
Compound
Complex
2. Ahmad played football while Amna went shopping.
Simple
Compound
Complex
2. Ahmad played football while Amna went shopping.
Simple
Compound
Complex
3. Ali passed the exam because he studied hard and understood the concepts.
Compound
Complex
3. Ali passed the exam because he studied hard and understood the concepts.
Simple
Compound
Complex
4- The jungle was filled with many winding paths through the thick bushes, a small waterfall, and dangerous wild snakes.
Compound
Complex
4- The jungle was filled with many winding paths through the thick bushes, a small waterfall, and dangerous wild snakes.
Simple
Compound
Complex
5- Life is either a daring adventure, or it is nothing.
Compound
Complex
5- Life is either a daring adventure, or it is nothing.
Simple
Compound
Complex
Q2- In the following sentences, select the correct word from those given in brackets.
(5)
1- Pick up your litter after a picnic.
2- This event happened during Hitler’s reign.
3- This is a poor site for her house.
4- The doctors prescribed some medicine for the patient.
5- Trespassers will be persecuted.
Q3- Punctuate the following sentences where necessary. (5)
He, not his brother, started to fight.
“Stop! Stay where you are!” shouted the policeman.
He sells pens, pencils, markers and paper.
He is working hard; his brother not at all.
The mirror, although it was carefully packed in a box, broke into pieces during transit.
Compound
Complex
Q2- In the following sentences, select the correct word from those given in brackets.
(5)
1- Pick up your litter after a picnic.
2- This event happened during Hitler’s reign.
3- This is a poor site for her house.
4- The doctors prescribed some medicine for the patient.
5- Trespassers will be persecuted.
Q3- Punctuate the following sentences where necessary. (5)
He, not his brother, started to fight.
“Stop! Stay where you are!” shouted the policeman.
He sells pens, pencils, markers and paper.
He is working hard; his brother not at all.
The mirror, although it was carefully packed in a box, broke into pieces during transit.
Subscribe to:
Comments (Atom)

