Skip to main content

Posts

Showing posts from December, 2018

video presentation

Search engine

          If you get many pictures on your boards,Pinterest will combine it together with keywords and category that makes from user all over the world to be a function in pinterest that’s called ‘Pins’.           Search engine works by combine pins with the category all your own pictures to make everytime .That user get into the app, Pins shows their last favourite pictures that they used to pins before. Let’s understand the type of searching! Searching Algorithms           Search algorithms are very important for many programs. Searchers looking for database, such as looking up your score record in the database. Although programmers can choose from search types, they select the algorithm that best matches the size and structure of the database.

Bubble Sort

Bubble Sort Bubble sort is a simple sorting algorithm. This sorting algorithm is comparison-based algorithm in which each pair of adjacent elements is compared and the elements are swapped if they are not in order. This algorithm is not suitable for large data sets as its average and worst case complexity are of Ο(n2) where n is the number of items. How bubble sort works ? 9    25    18    29    2 Bubble sort starts with very first two elements, comparing them to check which one is greater. 9    25    18    29    2 In this case, value 25 is greater than 9, so it is already in sorted locations. Next, we compare 25 with 18. 9    25    18    29    2 We find that 18 is lower than 25 and these two values must be swapped. 9    18    25    29 ...

Insertion sort

Insertion sort This is an in-place comparison-based sorting algorithm. Here, a sub-list is maintained which is always sorted. For example, the lower part of an array is maintained to be sorted. An element which is to be 'insert'ed in this sorted sub-list, find its appropriate place and then it has to be inserted there. How Insertion sort works ? 14    33    27    10    35    19    42    44 Insertion sort compares the first two elements. 14    33    27    10    35    19    42    44 It finds that both 14 and 33 are already in ascending order. For now, 14 is in sorted sub-list. 14    33    27    10    35    19    42    44 Insertion sort moves ahead and compares ...

Discrete maths in Pinterest (Algorithms)

Properties of Algorithms Input -An algorithm has input values from a specified set. Output -From each set of input values an algorithm produces output values from a specified set. The output values are the solution to the problem. Definiteness -The steps of an algorithm must be defined precisely. Correctness -An algorithm should produce the correct output values for each set of input values. Finiteness -An algorithm should produce the desired output after a finite (but perhaps large) number of steps for any input in the set. Effectiveness -It must be possible to perform each step of an algorithm exactly and in a finite amount of time. Generality -The procedure should be suit for all problems of the desired form, not just for a particular set of input values Complexity in algorithms Big Oh (O) Big Oh is often used to describe the worst-case of an algorithm by taking the highest order of a polynomial function and ignoring all the constants value since...

Discrete maths in Pinterest (Sorting Algorithm)

Sorting Algorithm                When pinterest link keywords and picture together,it’s surely that you don’t want one pictures. Pinterest use sorting algorithm to find similar pictures to be a choice to users. Sorting use many factors to define it example,by similar color,same category and the same pins. Sorting helps pinterest to be a big source of pictures on the internet for people who want to search something by don’t have to read many words so,you just look for the picture instead and pinterest can be social diary to show your own just by pictures on your boards. Sorting refers to arranging data in a particular format. Sorting algorithm specifies the way to arrange data in a particular order. Most common orders are in numerical or lexicographical order. Increasing Order A sequence of values is said to be in increasing order, if the successive element is greater than the previous one. Fo...

What is pinterest?

What is pinterest? Pinterest is a social network that allows users to visually share, and discover new interests by posting (known as 'pinning' on Pinterest) images or videos to their own boards. you'll always find Pins to make inspiration. When you discover Pins you like, save them to boards to keep your ideas and easy to find. Pins When everyone find things that they love,they pin it so,Pins are ideas that people on Pinterest find and save from around the internet. Each Pin links back to the website it was saved from. If you click the Pin, you can know the information of its. Home feed Pinterest remember category,prople,topics and boards that you often find or save it to pins and show them to your home feed every time you go through pinterest. Boards Your saved pins ,it saved on your boards and you can manage everything you want on your boards to share more ideas to others. Profile Your profile will be a mirror that reflect who you are to other p...