Posts

Showing posts from March, 2023

Introduction to Data Structures: An Overview

Data structures are an important concept in computer science that deals with the organization and storage of data in a way that enables efficient access and modification. In this blog, we will provide an introduction to data structures, including an overview of the basic concepts and terminology related to data structures, the different types of data structures, and their advantages and disadvantages. Basic Concepts and Terminology Before we dive into the types of data structures, let's first understand some of the basic concepts and terminology associated with them. Data: In computer science, data refers to any information that can be processed by a computer. Data Type: A data type defines the kind of data that a variable or constant can hold. Some common data types include integers, floating-point numbers, characters, and strings. Data Structure: A data structure is a way of organizing and storing data in a computer so that it can be accessed and manipulated efficiently. Example

Stack Data Structure Implementation using Arrays | Lab 1 | Logic and Program | Tamil | MPR

  Stack Data Structure Implementation using Arrays Watch this video in 1.5x if you want, coz the video is litter longer and I hope it will be useful. The program uses the concept of arrays and stacks and understanding it completely is obviously little tough, and I tried to complete it as best as I can and I hope you will find it useful. Try to visualize the concept and learn. Kindly comment down the pros and cons of the video. So that will improve myself. Welcome to this educational video on implementing a stack data structure using arrays. In this lab session, we will cover the logic and program for building a stack data structure in a step-by-step manner. We will start with an introduction to the concept of stacks and their applications in computer science. Then we will dive into the implementation details, including the definition of a stack, the array-based approach for building a stack, and the various operations that can be performed on a stack such as push, pop, and peek. Thr

Tower of Hanoi | Lab 1 | Logic and Program

  Tower of Hanoi Watch this video in 1.5x if you want, coz the video is litter longer and I hope it will be useful. The program uses the concept of recursion and understanding it completely is obviously little tough, and I tried to complete it as best as I can and I hope you will find it useful. Try to visualize the concept and learn. Kindly comment down the pros and cons of the video. So that will improve myself. Tower of Hanoi <- Video Link!!! Source Code: // 1 Tower of Hanoi #include <stdio.h> int towerofHanoi(int,char,char,char); void main() {        int n;        printf("Enter the number of disks \n");        scanf("%d",&n);        towerofHanoi(n,'A','C','B'); } int towerofHanoi(int n,char src, char dest, char aux) {        if (n==1) {         printf("Move disk 1 from %c to %c \n",src,dest);        }        else {         towerofHanoi(n-1,src,aux,dest);         printf("Move disk %d from %c to %c\n",n,src