Algorithms

From Pumping Station One
Revision as of 22:12, 12 December 2016 by Marialchemist (talk | contribs) (Created page with "'''Algorithms''' are a type of technology used in multiple fields of study that dictate or alter streams of information (in this case we will most be referring to computer sci...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Algorithms are a type of technology used in multiple fields of study that dictate or alter streams of information (in this case we will most be referring to computer science). The code/pseuocode presented on here will be written in Python.

Case Uses For Implementing Algorithms (Engineering and Computer Science) :

Common Computer Science Algorithms

Algorithms used in Computer Science are developed and implemented to alter the way data moves in network somehow ( the network representing the collection of data used to create a program/system )


The most common present:


Insertion Sort (sorting algorithm for small number of elements):


Python Code --- def insertionSort(alist):

  for index in range(1,len(alist)):
    currentvalue = alist[index]
    position = index
    while position>0 and alist[position-1]>currentvalue:
        alist[position]=alist[position-1]
        position = position-1
    alist[position]=currentvalue

alist = [54,26,93,17,77,31,44,55,20] insertionSort(alist) print(alist)

Which Algorithms Are Best Suited for Which Tasks

Optimizing Algorithms

Writing Your Own Algorithms