Tag: Data Structure

Sunday November 10th, 2019

Bubble Sort

Hello, In my previous articles, I wrote about the Insertion and Selection Sort Algorithms. In this article, I will try to make Bubble Sort Algorithm. In the bubble sort, we are finding the bigger item in the array and then change the order, algorithm do these process until the array become orderly. For the give an example, think like that array = [3,1,6,5,7,8,2,4] for the make orderly […]

Thursday November 7th, 2019

Insertion Sort Algorithm

Hello, In my previous article i talked about the selection sort algorithm you can reach by clicking here and in this article i try to make Insertion Sort Algorithm. In the insertion sort algorithm we pass the first element of the array and we think that that data is the smallest in the array. Rest of the data array, we consider that they are orderly and […]

Thursday November 7th, 2019

Selection Sort

Hello, Selection Sort is a sorting algorithm. With Selection Sort, we can sort the array minimum to the maximum or maximum to the minimum. Algorithm, choose the first element of the array as minimum and then in the for loops, we controlled the conditions if there is some minimum value than the or minimum then we change the their places. Algorithm is really simple to implement. Algorithms has complexity […]

Sunday November 3rd, 2019

Stack

Hello, Stack is an Abstract Data Type. Stacks are defined like the Last in First Out (LIFO) or First in Last Out(FILO). Stack can be used with the Arrays and Linked Lists. In this example, I will try to use Stack with the Array. Stack has 3 important functions and these are; Push : To add item, we use push function. Pop : To delete item, we use pop function. […]

Monday October 28th, 2019

Linked List

Hello, Linear List is a linear data structure which keeps the every data separately. Arrays are static but Linked Lists has dynamic structure. We may have difficulty to add a data to the array but if we use linked lists, we can add the data where ever we want. Number of the data is not sure in the Linked Lists, we can add data or delete data […]