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

What is the difference between call by value and call by reference in c?

622


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

22248


What is difference between arrays and pointers?

586


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

629


How do you declare a variable that will hold string values?

672






What are high level languages like C and FORTRAN also known as?

691


Write a C program in Fibonacci series.

640


How reliable are floating-point comparisons?

632


how can f be used for both float and double arguments in printf? Are not they different types?

612


How can I make it pause before closing the program output window?

585


What are extern variables in c?

552


Differentiate between Macro and ordinary definition.

735


What is pass by reference in c?

618


Write a C program to count the number of email on text

1422


What does volatile do?

571