ES2660: Wildcare #2 Barrots agaisnt ennis

WildCard #2:Using Barrett's taxonomy, what are five questions you could ask about Ennis, 2011?Which questions would be essential to get answers to and why? Plan and deliver a 1-2 minute talkBarrett's Taxonomy Literal ComprehensionRecognitionDetails Use the 5Ws to understand the storyMain IdeaGet the gist of the storySequenceAble to order the incidentsComparisonFind the... [Read More]

CS2100: Pointers and referencing

Declaration- The & operator gives the address of a variable- The *ptr means that ptr is a pointer variable and anything thats assigned to ptr is a mem location- Memory is integerNote: Memory is not always consecutiveUsageDeclaring x:int x;Declaring pointer:int *ptr, *ptr2Point ptr to x's address:ptr = &x//*ptr is pointing... [Read More]

ES2660: Fairy tale discussion

Story: CinderellaName:-Cinderella-Prince-Step sister- The king-The step mother-The fairy god mother- AnimalsCinderella-

ES2660: Ennis Summary and Review

SummaryBeing a critical thinker means to- Care that their beliefs are true and that their decisions are justified- Seek alternative hypotheses, explanation, conclusion, plans and sources- Consider and listen to other pov- Be well informed- seek and offer reasonCritical thinking abilities:- Focus on question- Analyze argumentsa. Conclusionb. Reasons or premisesc.... [Read More]

CS2040s: Algo analysis

Types of sortsBubble sort1. Start from index 02. Each time element is compared (ie current index) with the next element3. If the next is bigger than current, do nothing, move to the next element If the next is smaller than current, swap with next and then increment index counter4. Repeat step... [Read More]

CS2040S: ADT List, stack and queue

Linked ListA linear data structure that uses pointers to point to the other nodes. Elements are not stored in contiguous memory.Abstract Data TypeA type or class for objects whose behavior is defined by a set of values and a set of operations.ADT and Data structures, their relationshipADT is just a... [Read More]

GES1011: Lecture 1 (Introduction)

"Both countries need to be open with each other.. keep in mind singapore will always be there and we will always be there and we will always be here.. we have to find ways and ened of living together because geography doesn't change" Chandra Muzaffar->  Singapore will always be hereThere... [Read More]

ES2660: Week 1 Discussion (video)

Watch the video of the dance choreography(Discussion)1. Meaning- The guy was looking in the mirror:He was only looking at himself, being egoistic- The girl pull,eye contact :mesmerised with her, fell in love- At the end, the guy fell and the girl pull him up only for him to walk away:He... [Read More]

CS2100: Number representation

Base-R to Decimal Conversione.g1101 (Base P) = 1´R3  +  1´R2  +  1´R0  orREMAINDER MethodCommon Data Types Mapping1. Common Byte = 8-bitCharacter = 8-bit2. 32 - bit ProcessorInteger = 32 bitSingle-Precision Floating Point Number = 32-bitDouble-Precision Floating Point Number = 64-bit3. 64 Bit processorInteger = 64 bitSingle-Precision Floating Point Number = 64-bitDouble-Precision Floating... [Read More]

CS2100 - C Overview

1) High level to Machine codeTranslator:- Translate a source language into a target language for a programCompiler:- A translator whose source is a high level languageInterpreter:- A translator that translates and executes a source program2) Compiled programThe entire program is compiled before the execution(Compiler)Compiler: Compile program into assembly languageAssembler: Assemble... [Read More]

GES1011: Readings

Singapore: A 700 year History - From early emporium to world city- According to Sulalat (Sejarah Melayu), the last king Iskander Shar withdrew from Singapura when he was betrayed by on of his courtiers to invading Majapahit forces from java.- Archaeological evidence recovered since 1984 shows that 14th century settlements... [Read More]

CS2040: Queue ADT

QueuesQueues are First in First OutOperations for Queues consiste of:pollGrab the first element and remove itpeekLook at the first element without removing itoffer/enqueueAdd an element to the back of the queueQueue InterfaceQueue implemented ArrayWe can use Arrays to implement queues.Use an array with front and back pointer.       ... [Read More]

CS2040: Stack ADT

DA StackStack only has a small number of operationsPeekPeek allows the user to see the first element on top of the stackPopPop allows the user to remove and see the first element on top of the stackPushPush adds an element on top of the stackStack InterfaceThe user cannot access the... [Read More]

CS2100: Arrays and TypeStruct

ArraysIt's illegal to assign an array to another array.#define N 10int source[N] = { 10, 20, 30, 40, 50 };int dest[N];dest= source;  // illegal!This is due to the array name being a constant pointer, it points to the first element of the arrayThis cannot be changed.If we want to do... [Read More]

CS2040: ADT and List pt2

Extended Linked ListEach linked list is made up of nodes and each node is connected to one another. However, sometimes when we want to insert the nodes in the middle, BLL(Basic) is not good enough. e.g: List must always be sorted accordinglyInstead of reimplementing the class extendedlinkedlist, we can just implement... [Read More]

CS2100: Pointers

PointersAllows direct manipulation of memory contentsUses the & operator to refer to the addresse.g:a = 123&a = ffbff7dc //they are in hexaDuring printf , uses %p as the format specifier for addressA pointer variable is a variable that contains the address of another variablea_ptr here is a pointer variable and... [Read More]

CS2040: List ADT and Linked Lists

Use of a List- Keep the same type(class) in a list- Manage our dataADT of a List- A dynamic linear data structure- Accessible one after another starting from the heade.g: Create empty list, check if list is empty, add item at certain positionSample:ADT: A contract, ie an interfaceImplementation: Arrays, linked... [Read More]

CS2040 Lecture Note #2 ADT

Abstract Data Type1. Software engineering Issues- Program Design Principals       a. Abstraction            Using Java Interface             Concentrate on what can be done and not how       b. Coupling           Classes should not interdepend on each other ... [Read More]

GET1042: My experiences

Star Gazing:Session one:We tried to view marsThe cloud was bad that day espeically towards utwonGot scolded by dr abel because we turn the telescope upside down and the cable was stretchSpent one hour searching for Sirius only to find out our telescope was out of focus because someone touched the... [Read More]

Tutorial 1: Celestrial sphere

GET1042: Sky gazing tutorial 1Telescope model: NexstarPrecaution:1. Ensure that the power plug is underneath the telescope. This is to make sure that the wires have enough space to "swim" around.2. Ensure that the screws are always on. Do not unscrew the small screws3.  Ensure that the telescope hinge is facing... [Read More]