About 40 results
Open links in new tab
  1. Selection Sort - GeeksforGeeks

    Dec 9, 2024 · Selection Sort is a comparison-based sorting algorithm. It sorts an array by repeatedly selecting the smallest (or largest) element from the unsorted portion and swapping it with the first unsorted element. This process continues until the entire array is sorted. First we find the smallest element and swap it with the first element.

  2. Selection Sort (With Code in Python/C++/Java/C) - Programiz

    Selection Sort is an algorithm that works by selecting the smallest element from the array and putting it at its correct position and then selecting the second smallest element and putting it at its correct position and so on (for ascending order).

  3. Java Program for Selection Sort - GeeksforGeeks

    Oct 23, 2024 · Selection Sort is a comparison-based sorting algorithm. It sorts an array by repeatedly selecting the smallest (or largest) element from the unsorted portion and swapping it with the first unsorted element. This process continues until the entire array is sorted. First we find the smallest element a

  4. DSA Selection Sort - W3Schools

    Selection Sort. The Selection Sort algorithm finds the lowest value in an array and moves it to the front of the array.

  5. Selection Sort Algorithm - Online Tutorials Library

    Selection sort is a simple sorting algorithm. This sorting algorithm, like insertion sort, is an in-place comparison-based algorithm in which the list is divided into two parts, the sorted part at the left end and the unsorted part at the right end. Initially, the …

  6. Selection Sort Algorithm – Iterative & Recursive | C, Java, Python

    Sep 14, 2022 · Given an integer array, sort it using the selection sort algorithm. Selection sort is an unstable, in-place sorting algorithm known for its simplicity. It has performance advantages over more complicated algorithms in certain situations, particularly where the …

  7. 18.1 — Sorting an array using selection sort – Learn C

    Sep 11, 2023 · Selection sort performs the following steps to sort an array from smallest to largest: In other words, we’re going to find the smallest element in the array, and swap it into the first position. Then we’re going to find the next smallest element, and swap it into the second position. This process will be repeated until we run out of elements.

  8. Program to sort an array of strings using Selection Sort

    Feb 9, 2023 · Given an array of strings, sort the array using Selection Sort. Examples: Prerequisite : Selection Sort. // array of strings. Time Complexity: O (n 2), where n represents the size of the character array. Auxiliary Space: O (100), no extra space is …

  9. C Program for Selection Sort - GeeksforGeeks

    Aug 20, 2024 · In this article, we will learn about the selection sort, its working and its implement in C language. How Selection Sort Works in C? Selection sort work by virtually dividing the array into two parts: sorted and unsorted. Initially, whole list is considered unsorted.

  10. Selection Sort in C | Selection Sort Example In C - Edureka

    Mar 29, 2022 · Selection sort is another algorithm that is used for sorting. This sorting algorithm, iterates through the array and finds the smallest number in the array and swaps it with the first element if it is smaller than the first element. Next, it goes on to the second element and so on until all elements are sorted. Example of Selection Sort.

Refresh