Skip to content

DSA

  • Algorithms
  • DSA
  • Array
  • Stack
  • Queue
  • Matrix
  • Programs

DSA

  • Algorithms
  • DSA
  • Array
  • Stack
  • Queue
  • Matrix
  • Programs

Tag: algorithm

  1. Home
  2. Posts tagged "algorithm"
Quick Sorting (Recursive and Non Recursive)
February 11, 2023

Quick Sorting (Recursive and Non Recursive)

  • algorithms
  • stack
  • YASH PAL

Algorithm Quick sorting (Nonrecursive) QUICK(A, N, BEG, END, LOC) Here A is an array with N elements. Parameters BEG and END contain the boundary values of the sub-list of A to which this procedure applies. LOC keeps track of the position of the first element. A[BEG] of the sub list during the procedure. The local […]

  • Tags:
  • algorithm
  • DSA
  • quick sorting
Read More
Tower of Hanoi (Recursive & Non-recursive)
February 10, 2023

Tower of Hanoi (Recursive & Non-recursive)

  • algorithms
  • data structures
  • YASH PAL

Algorithm – Tower of Hanoi (recursive) TOWER(N,BEG,AUX,END)This procedure gives a recursive solution to the Towers of Hanoi problem for N disks. 1. If N = 1, then:         (a) Write: BEG -> END.         (b) Return.    [End of If structure.] 2. [Move N – 1 disks from BEG to AUX.]  […]

  • Tags:
  • algorithm
  • DSA
Read More
Selection Sorting Algorithm
November 26, 2022

Selection Sorting Algorithm

  • algorithms
  • data structures
  • selection sorting
  • YASH PAL

Selection Sorting Algorithm: The selection sort starts from the first element and searches the entire list until it finds the minimum value. The sort places the minimum value in the first place, selects the second element, and searches for the second smallest element. The process continues until the complete list is sorted. A selection sort […]

  • Tags:
  • algorithm
  • DSA
  • selection sorting
Read More
Algorithm to Calculate factorial using function
September 27, 2022

Algorithm to Calculate factorial using function

  • algorithms
  • YASH PAL

In this tutorial, we will write an algorithm to calculate factorials using the function. using this algorithm we can make a program to calculate factorial using functions in most programming languages like java python c++ and c programming. Algorithm to Calculate factorial using function. 1. Read N. 2. ANS=FACT(N). 3. Write ANS. 4. Exit [This […]

  • Tag:
  • algorithm
Read More
Algorithm for Linear Search in Array
September 26, 2022

Algorithm for Linear Search in Array

  • algorithms
  • YASH PAL

In this tutorial, we are going to write a Linear search algorithm in Array. using this algorithm we can write a program to linear search in the array for an element in almost every programming language like java, python, c++, and c programming. Algorithm for Linear Search in Array. 1. Read N 2. Repeat step3 […]

  • Tag:
  • algorithm
Read More
Algorithm to find whether a number is prime or not
September 26, 2022

Algorithm to find whether a number is prime or not

  • algorithms
  • YASH PAL

In this tutorial, we are going to write an algorithm to verify whether a number is prime or not. using this algorithm we can write a program to verify whether a number is prime or not or find whether a number is prime or not in most programming languages like java, python, c++, and c. […]

  • Tag:
  • algorithm
Read More
Algorithm to reverse a given number
September 25, 2022

Algorithm to reverse a given number

  • algorithms
  • YASH PAL

In this tutorial, we are going to write an Algorithm to reverse the digits of given n-digit numbers. using this algorithm we can write a program to reverse the digits of given n-digit numbers or a number in almost most programming languages like java python c++ and c programming. Algorithm to reverse a given number. […]

  • Tag:
  • algorithm
Read More
Algorithm to print series 1 to N using do while loop
September 24, 2022

Algorithm to print series 1 to N using do while loop

  • algorithms
  • YASH PAL

In this tutorial, we are going to write an algorithm to print the series 1 to N using the do-while loop. using this algorithm we can write a program to print the series 1 to N using the do-while loop in most programming languages like java, python, c++, and c programming. Algorithm to print the […]

  • Tag:
  • algorithm
Read More
Algorithm to print the series 1 to N using while loop
September 24, 2022

Algorithm to print the series 1 to N using while loop

  • algorithms
  • YASH PAL

In this tutorial, we are going to write an algorithm to print the series of 1 to N using a while loop. using this algorithm we can write a program to print the series 1 to N using a while loop in most programming languages like java python c++ and c programming. Algorithm to print […]

  • Tag:
  • algorithm
Read More
Algorithm to print the series 1 to N using for loop
September 24, 2022

Algorithm to print the series 1 to N using for loop

  • algorithms
  • YASH PAL

In this tutorial, we are going to write an algorithm to print the series 1 to N using for loop. using this algorithm we can write a program to print the series 1 to N using for loop in most programming languages like C, C++, Java, and Python programming language. Algorithm to print the series 1 […]

  • Tag:
  • algorithm
Read More
  • 1
  • 2

Asides

  • Parenthesis Matching program in C programming
  • Tower of Hanoi Non-Recursive Using Stack program in C programming
  • Tower of Hanoi Recursive program in C Programming
  • Check the Palindrome number program in c programming
  • Print the reverse of a string using Stack program in c
  • Evaluate a Postfix and Prefix equation program in c
  • Infix to Postfix and Prefix Equation program in c
  • Stack Operations program in c Programming
  • Quick Sorting (Recursive and Non Recursive)
  • Tower of Hanoi (Recursive & Non-recursive)
Home About Contact Privacy DMCA
Copyright © datastructuresandalgorithms.com 2022