Python Data Structure

Difference Linear queue and Circular queue

Linear Queue Circular Queue Data elements are stored in linear patter Data elements are stored in circular pattern where rear end is connected with front end It occupies more memory space It occupies less memory space Insertion and deletion of elements are possible from rear and front end only Insertion and deletion of element are

Difference Linear queue and Circular queue Read More »

What do you understand by linear and non-linear data structures?

Linear data structure– Data elements are stored in a sequence– Each data element is connected to next or previous adjacent element– Exp- stack, queue, linked listNon-linear data structure– Data elements are distributed over a plane– Data elements are connected in hierarchical manner.– Exp-Tree

What do you understand by linear and non-linear data structures? Read More »

Is data structure related to data type? Explain

Yes data structure is related to data type. Following are the reasons-– Data type ensure which type of data a data structure will contain– Data type ensure the type of operations can be performed on data structure– Data type determines the size of data structure in terms of memory.

Is data structure related to data type? Explain Read More »

What is data structure? Name some common data structure

– Data structure is way of organizing, managing, process data in efficient manner.– Data Structure is physical implementation of data.– Data structure helps processor to process and handle large and complex data without any failure.– Data structure allows running a program or implementing operation at minimum time.– Data structure allows to minimum memory space to

What is data structure? Name some common data structure Read More »

error: Content is protected !!