About 309,000 results
Open links in new tab
  1. Linear Search Algorithm - GeeksforGeeks

    Mar 27, 2025 · In Linear Search, we iterate over all the elements of the array and check if it the current element is equal to the target element. If we find any element to be equal to the target element, then return the index of the current element. Otherwise, if no element is equal to the target element, then return -1 as the element is not found.

  2. C Program for Linear Search - GeeksforGeeks

    Apr 15, 2025 · Linear Search is a sequential searching algorithm in C that is used to find an element in a list. Linear Search compares each element of the list with the key till the element is found or we reach the end of the list. Example. Explanation: Start from index 0, compare each element with the key (30).

  3. Linear Search (With Code) - Programiz

    Linear search is a sequential searching algorithm where we start from one end and check every element of the list until the desired element is found. It is the simplest searching algorithm.

  4. Linear Search Algorithm - Online Tutorials Library

    Linear search is a type of sequential searching algorithm. In this method, every element within the input array is traversed and compared with the key element to be found. If a match is found in the array the search is said to be successful; if there is no match found the search is said to be unsuccessful and gives the worst-case time complexity.

  5. Linear Search in C - The Crazy Programmer

    Jul 18, 2013 · Here you will find program for linear search in C. Linear search is the simplest searching algorithm which is sometimes known as sequential search. In this algorithm each element of array is compared with the targeted element sequentially.

  6. C Program to Find an Element Using Linear Search

    Linear Search is a process of searching given elements in sequential order. Linear Search Algorithm With Example is written in C++ with examples. int array[100], search, c, number; printf("Enter the number of elements in array\n"); scanf("%d",&number); printf("Enter %d numbers\n", number); for ( c = 0 ; c < number ; c++ ) scanf("%d",&array[c]);

  7. Linear Search in C | Search Array Element using Linear Search - Edureka

    Mar 29, 2022 · Linear search is a very simple and basic search algorithm. In this blog on “Linear search in C”, we will implement a C Program that finds the position of an element in an array using a Linear Search Algorithm.

  8. Linear Search Algorithms: A Comprehensive Guider

    At its core, linear search is arguably the simplest search algorithm: start at the beginning, go to the end, find what you‘re looking for along the way. More formally, it sequentially checks each element of a collection for a target value until a match is …

  9. DSA Linear Search - W3Schools

    To implement the Linear Search algorithm we need: An array with values to search through. A target value to search for. A loop that goes through the array from start to end. An if-statement that compares the current value with the target value, and returns the …

  10. Linear Search Algorithm in C, Data Structure and Tutorials

    Apr 24, 2025 · In this article, we will learn about the linear search algorithm used to find the elements in a group of elements, such as an array or list. The linear search algorithm is used to iterate through every element in a list, then find and return the element if it is present.

  11. Some results have been removed
Refresh