Postingan

Menampilkan postingan dari Februari, 2018

Pertemuan ke 2, Linked List Implementation I, 2101678775, Rafael Kevin Liman.

Linked List Implementation I Sub Topics Linked List: -         Single Linked List -         Polynomial Representation -         Circular Single Linked List -         Doubly Linked List Single Linked List: Insert To insert a new value, first we should dynamically allocate a new node and assign the value to it and then connect it with the existing linked list. Single Linked List: Delete To delete a value, first we should find the location of   n ode which store the value we want to delete, remove it, a nd connect the remaining linked list. Polynomial Representation •         Polynomial is given as 6x 3 + 9x 2 + 1 •         Every individual term in a polynomial consists of two parts, a coefficient and a power •     ...

Pertemuan 1, Pointer, Array and Introduction to Data Structure & Introduction to Linked List, 2101678775, Rafael Kevin Liman.

Introduction to Linked List Sub Topics Pointer, Array and Introduction to Data Structure ·         Array Review ·         Pointer Review ·         Types of Data Structures Abstract Data Type Array •         A collection of similar data elements •         These data elements have the same data type (homogenous) •         The elements of the array are stored in consecutive memory locations and are referenced by an index Array index starts from zero Array Declaration & Accessing Array •         One Dimensional Array Declaration: •         int arr[5]; Syntax: type name[size]; An array of size N have indexes from 0 to N-1. Accessing: •     ...