-
Search Algorithms
Linear Search Given an array of n elements, find a specific element (x) in the array and return it’s position. Binary Search Binary search tackles the problem of locating a specific element within…
-
Working with Queues in the Collections Framework
The queue data structure can be useful in algorithms where you need to process data in a sequential order. A queue contains the elements in the order they were added, that is, elements…
-
String Algorithms
String validation algorithms are quite common when determining the properties or attributes of the string. The output of a validation algorithm is boolean, that is, true or false. Validating all-or-nothing properties Scenario :…
-
Algorithms
What is an algorithm? An algorithm is a way of solving well specified computational problems. – Cormen et al. A finite set of rules that give a sequence of operations for solving a…