Flag Top Engineering Colleges in India> Software Eng...
question mark

Normal 0false false falseEN-US X-NONE X-NONE/* Style Definitions */table.MsoNormalTable{mso-style-name:Table Normal;mso-tstyle-rowband-size:0;mso-tstyle-colband-size:0;mso-style-noshow:yes;mso-style-priority:99;mso-style-qformat:yes;mso-style-parent:;mso-padding-alt:0in 5.4pt 0in 5.4pt;mso-para-margin-top:0in;mso-para-margin-right:0in;mso-para-margin-bottom:10.0pt;mso-para-margin-left:0in;line-height:115%;mso-pagination:widow-orphan;font-size:11.0pt;font-family:Calibri,sans-serif;mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Times New Roman;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;}5. What is a first-in-first-out data structure? Write algorithms to perform the following operations on it – create, insertion, deletion, for testing overflow and empty conditions.6. What is a graph? What are the two ways of representing a graph? Describe with the help of illustrative examples.7. What is a circular queue? Write algorithms to implement the insertion and deletion operations.8. Write an algorithm to find the roots of a quadratic equation.9. Design an algorithm to check whether a given string is a palindrome or not.10. Develop an algorithm to generate all the prime numbers between the given 2 limits.

bhupinder singh , 12 Years ago
Grade
anser 1 Answers
Aman Bansal

Last Activity: 12 Years ago

Dear Bhupinder,

In terms of a set of objects, the frist-in-first-out approach consists in that the first object to have been added to the set will be the first to be let out. Such a structure would provide you with at least two basic operations: to add objects in, and to get objects out. And a structure built along this approach would not allow for the possibility of letting you choose which object to retrieve: the objects get out in the order they got in (or were put in, to be more specific). 
A classic illustration and representation of this approach would be that of a tube the size of the objects you put in. You can add the objects only at one end, and get the objects back only at the other end. This way, you see that there is no way to get the objects in between. Of course, the size of the structure is not necessarily as limited as that tube, and depends on the implementation. 

Cracking IIT just got more exciting,It s not just all about getting assistance from IITians, alongside Target Achievement and Rewards play an important role. ASKIITIANS has it all for you, wherein you get assistance only from IITians for your preparation and win by answering queries in the discussion forums. Reward points 5 + 15 for all those who upload their pic and download the ASKIITIANS Toolbar, just a simple  to download the toolbar….

So start the brain storming…. become a leader with Elite Expert League ASKIITIANS

Thanks

Aman Bansal

Askiitian Expert

Provide a better Answer & Earn Cool Goodies

Enter text here...
star
LIVE ONLINE CLASSES

Prepraring for the competition made easy just by live online class.

tv

Full Live Access

material

Study Material

removal

Live Doubts Solving

assignment

Daily Class Assignments


Ask a Doubt

Get your questions answered by the expert for free

Enter text here...