1.What is a Data Structure? Explain its need?
2.What is a Directed Graph? Write an algorithm to find
whether a Directed Graph is connected or not?
3.Explain the process of converting a Tree to a Binary Tree.

Answer Posted / diwakar anand

What is a Data Structure? Explain its need?
Ans- 1. A data structure is a systematic way of
organizing and accessing data.
2. A data structure tries to structure data!
* Usually more than one piece of data
* Should define legal operations on the data
* The data might be grouped together (e.g. in an
linked list)

3. When we define a data structure we are in fact
creating a new data type of our own.
* i.e. using predefined types or previously user
defined types.
* Such new types are then used to reference
variables type within a program

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1779


What is the use of typedef in c?

597


difference between Low, Middle, High Level languages in c ?

1640


What does %d do in c?

554


The statement, int(*x[]) () what does in indicate?

661






What is the size of array float a(10)?

666


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

674


How can I run c program?

699


Are pointers really faster than arrays?

577


Differentiate between full, complete & perfect binary trees.

682


Can we use any name in place of argv and argc as command line arguments?

619


What is the symbol indicated the c-preprocessor?

704


What is "Hungarian Notation"?

647


How can you tell whether two strings are the same?

842


What does sizeof function do?

629