Coder Social home page Coder Social logo

ravi-prakash1907 / data-structure Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 32 KB

DU-CS Practicals of data structures

Home Page: https://ravi-prakash1907.github.io/Data-Structure/

C++ 100.00%
data-structures cpp college sorting searching linked-lists

data-structure's Introduction

Data Structure Practicals

B.Sc. (Hons.) Computer Science

2nd year - C++ based

Practical List

  1. Write a program to search an element from a list. Give user the option to perform Linear or Binary search. Use Template functions.
  2. WAP using templates to sort a list of elements. Give user the option to perform sorting using Insertion sort, Bubble sort or Selection sort.
  3. Implement Linked List using templates. Include functions for insertion, deletion and search of a number, reverse the list and concatenate two linked lists (include a function and also overload operator +).
  4. Implement Doubly Linked List using templates. Include functions for insertion, deletion and search of a number, reverse the list.
  5. Implement Circular Linked List using templates. Include functions for insertion, deletion and search of a number, reverse the list.
  6. Perform Stack operations using Linked List implementation.
  7. Perform Stack operations using Array implementation. Use Templates.
  8. Perform Queues operations using Circular Array implementation. Use Templates.
  9. Create and perform different operations on Double-ended Queues using Linked List implementation.
  10. WAP to scan a polynomial using linked list and add two polynomial.
  11. WAP to calculate factorial and to compute the factors of a given no.

(i)using recursion,
(ii) using iteration

  1. WAP to display fibonacci series

(i)using recursion,
(ii) using iteration

  1. WAP to calculate GCD of 2 number

(i) with recursion
(ii) without recursion

  1. WAP to create a Binary Search Tree and include following operations in tree:

(a)Insertion (Recursive and Iterative Implementation)
(b)Deletion by copying (c)Deletion by Merging
(d)Search a no. in BST
(e)Display its preorder, postorder and inorder traversals Recursively
(f)Display its preorder, postorder and inorder traversals Iteratively
(g)Display its level-by-level traversals
(h)Count the non-leaf nodes and leaf nodes
(i)Display height of tree
(j)Create a mirror image of tree
(k)Check whether two BSTs are equal or not

  1. WAP to convert the Sparse Matrix into non-zero form and vice-versa.
  2. WAP to reverse the order of the elements in the stack using additional stack.
  3. WAP to reverse the order of the elements in the stack using additional Queue.
  4. WAP to implement Diagonal Matrix using one-dimensional array.
  5. WAP to implement Lower Triangular Matrix using one-dimensional array.20.WAP to implement Upper Triangular Matrix using one-dimensional array.
  6. WAP to implement Symmetric Matrix using one-dimensional array.
  7. WAP to create a Threaded Binary Tree as per inorder traversal, and implement operations like finding the successor / predecessor of an element, insert an element, inorder traversal.
  8. WAP to implement various operations on AVL Tree.

data-structure's People

Contributors

ravi-prakash1907 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.