Showing posts with label MH Y2S2. Show all posts
Showing posts with label MH Y2S2. Show all posts

Thursday, October 14, 2010

MH - Y2S2 result day

This semester result is peak low... It's okay though, exam results are for losers anyways... haha....

I learnt a lot this semester and love all my decisions. There is nothing much to add on. Need to rush project... what a sucky semester break this is... all work no fun... =(

Saturday, September 25, 2010

MH - END of Y2S2

This semester can be said as a life changing semester. As the syllable become a bit less challenging and the exam becomes a little interesting and sometimes a bit unfair... -_-, it makes me very lazy to study.

What is the reason of having a good result while you have no deep understanding on the subject itserf? Tragedy neh? "To die without knowing is a sin" quoted this from my dear Karen ^^

It can be said that life long learning is a common duty of almost all engineers. The question comes in here, how can one learn when he/she does not even know the basics? This is the problem I am facing... I realize this in a hard way...

So... After this semester, I will work myself to death by involving in many projects. However for now, I need to focus on a little cute competition else will be raped by my teammates ~.~

Below are some photos of my coursemate. Love them a lot =D




     












Well... I am not going to tell who is who XD

We are Brothers Till The End =D

~Sweet Memories ~

Thursday, September 23, 2010

MH - AI Summary

Chapter1

Learning
Data Mining - The process of analyzing large amounts of data in order to extract new kinds of useful information
Neural Network - A network of smple processors designed to emulate the fnctioning of human's brain
Case Based Reasoning - Solve problem by retrieving the solution of previous similar problems

Rule-based Systems
Rule-based system represents knowledge in terms of rules so that the system could conclude in different situations.
Knowledge base = IF-THEN rules and facts
inference engine = interpreter controlling the application of the fules given the facts
eg - prolog

Searching
Find efficient search strategy  to find a solution
eg - game theory/route planning

Planning
Coming up with actions that will increase the autonomy and flexibility of an agent through the construction of sequences of actions to achieve the goal.

Ability-Based Areas
Computer Vision
Natural language recognition/generation
Speech recognition/generation

Roboticsdevice that works automatically or by remote control
Programmed to perform tasks normally done by people



Chapter 2

Measuring An Agent's PerformanceReceives percepts >> enerates sequence of actions >> Performed sequence of states

Rationality of an agent
  • Performance measures that define the criterion of successs
  • Agent's initial knowledge of the environment
  • Actions that the agent can perform
  • Agent's percept sequence to date

Properties of Task Environments

Fully Observable - has access to complete state of the environment any time. Need to maintain any    internal state to keep track of the world
Partially Observable - caused by noise and inaccurate sensors or parts of the state are simply missing from sensor data

Deterministic - Next state is determined by the current state and action execute by agent
Stochastic - When the environment is Partially Observable (behavior cannot be predicted)

Episodic - Choice of ation in each episode depends only on the episode itself
Sequencial - Current decision coule affect all future decisions

Single/Multiagent - got brain then know =D



Solo Assignment Tittle *HAWT*



Examples are in italic and might be incorrect, correct me if so =D 


Logical AI
·       Represents knowledge of an agent's world, its goals and the current situation by sentences in mathematical logic language. 
·         The program decides what to do by inferring that certain actions are appropriate for achieving its goals.
eg. Stabilizing robot which obtain input from various sensors, formulate actions and maintain stable position 

Search
·         AI programs often examine large numbers of possibilities
·         Discoveries are continually made about how to do this more efficiently in various domains.
 e.g. moves in a chess game or inferences by a theorem proving program.


Pattern Recognition
·         When a program makes observations of some kind, it is often programmed to compare what it sees with a pattern.
·         For example, a vision program may try to match a pattern of eyes and a nose in a scene in order to find a face.
·         More complex patterns, e.g. in a natural language text, in a chess position, or in the history of some event.
·         These more complex patterns require different methods of approach.
eg. Speech and fingerprint recognition



Representation
·         Facts about the world have to be represented in some way.
·         Usually languages of mathematical logic are used.
eg. how to represent an object such as knife in computer world. How does the knife looks/feels like. 


Common sense knowledge and reasoning
·         This is the area in which AI is farthest from human-level.
·         It has been an active research area since the 1950s.
·         e.g. in developing systems of non-monotonic reasoning and theories of action

eg. The Cyc project aims at making a large base of common sense knowledge.
eg. Using a barometer to determine the height of a building. There are various methods to solve this problem and this topic deals with this sort of problem.

Planning
·        Planning programs start with general facts about the world (especially facts about the effects of actions), facts about the particular situation and a statement of a goal.
·         From these, they generate a strategy for achieving the goal.
·         The strategy is sequence of actions.
eg.  Planning a staff time table for an University?
eg. IBM Deep Blue Machine, planning chess strategy to beat an opponent

Inference
·         From some facts, others can be inferred.
·         Mathematical logical deduction is adequate for some purposes, but new methods of non-monotonic inference have been added to logic.
·         Default reasoning = simplest kind of non-monotonic reasoning.
·         >>conclusion is to be inferred by default but it can be withdrawn if there is evidence to the contrary.
·         For example, when we hear of a bird, we infer that it can fly, but this conclusion can be reversed when we hear that it is a penguin.
·         Ordinary logical reasoning is monotonic.
·         Conclusions that can be drawn from a set of premises are a monotonic increasing function of the premises.
·         Circumscription is another form of non-monotonic reasoning.
eg. Prolog (Programming in Logic) is an example of programming language which deals with inference machine in an expert system using an algorithm called backward chaining.


Learning from Experience
·         The approaches to AI based on connectionism and neural nets specialize in that.
·         There is also learning of laws expressed in logic.
·         Programs can only learn what facts or behaviors their formalisms can represent. Learning systems are almost all based on very limited abilities to represent information.
eg. In pattern recognition, the system can be fed many similar images and from there generate experience so that it could detect similar object in the future

Epistemology
·         This is a study of the kinds of knowledge that are required for solving problems in the world.
eg. The skills, rules and knowledge taxonomy of a human behavior being integrated into a system


 

Ontology
·         Ontology is the study of the kinds of things that exist.
·         In AI, the programs and sentences deal with various kinds of objects, and we study what these kinds are and what their basic properties are.
·         Emphasis on ontology begins in the 1990s.
eg. Semantic web, parsing used in Natural Language Processing

Heuristics
·         A heuristic is a way of trying to discover something or an idea imbedded in a program.
·         Heuristic functions are used in some approaches to search to measure how far a node in a search tree seems to be from a goal.
·         Heuristic predicates that compare two nodes in a search tree to see if one is better than the other
eg. Games such as tic tac toe

Genetic Programming
·         Genetic programming is a technique for getting programs to solve a task by mating random Lisp programs and selecting fittest in millions of generations.
eg. ECJ - Evolutionary Computation (written in Java)



Thanks Anson for helping me filling in the examples =D
The rest in hardcopy, treat me MooMoo ice cream then I MIGHT lend you photocopy =D

Thursday, September 16, 2010

MH - MCU Summary

GOSH... I have totally no idea why am I doing this.... -__-


thank god all the stuffs are given in the datasheet...
Words in bold are SFR... those which are not, are flags inside the SFR.... with the datasheet, there is virtually nothing that we cannot do =D no careless please... >< hahahahahaha




Some Theory from Tutorial:


Machine language – binary code, directly understood by the CPU.

Assembly language – mnemonic representation of the binary code, a one-to-one direct translation (assemble) to the binary code.

High-level language – more human-readable instruction and easy-to-understand programming concept (if-then-else, and loops), one instruction normally translates (compiles) to multiple binary instructions.

Address bus – to send (from CPU) the address of the memory requested to the memory module, unidirectional.

Data bus – to send or receive binary data, bidirectional.





Data RAM – volatile, instant rewrite, store data.
EEPROM – non-volatile, slow in rewriting, store data/program.
Flash – non-volatile, reasonably fast in rewriting, store program.

7.     What does a register in the PIC18 made of?
Answer: 8 flip-flops (or an 8-bit SRAM).

8.     State the addresses and describe the roles of WREG, STATUS, and PC.
WREG (FE8h) – store ALU (CPU) output result.
 STATUS (FD8h) – store special condition flags of the ALU operation.
PC (FF9h, FFAh, FFBh) – store the address of the next instruction to execute.




TIMER
Timer0 (16bit)
Controlled by T0CON
set PSA, TOPS2, TOPS1, TOPS0 to set the prescale (PSA set=bypass prescale)
*New instruction cycle time = Prescale X  4/Fosc
- set TMR0ON to start timer
*always stop the timer when needed then start back again !!!!

*set TMR0H first then cai set TMR0L

timer interrupt is in INTCON de TMR0IF

Timer1 (16bit)
*by default when cleared the flags, pre scale = 0 
T1CON's flag is different from T0CON *check datasheet
there is no bypass prescale flag

overflow flag is in PIR1 de TMR1IF


Timer2 (8bit)
*by default when cleared the flags, pre/post scale = 0
interrupt flag is in PIR1 de TMR2IF
need to set PR2 (maximum number before overflow) 00 >> PR2 then overflow ~~

Timer3 (16bit)
*by default when cleared the flags, pre scale = 0 
interrupt flag is in PIR2 de TMR3IF


Serial Communication Interface, SCI
DB-9 connector
pins which are shorted in groups:
1 - let PC know modem is ready
4 - PC turn on
6 - modem ready

7 - PC output signal / when PC want to send data
8 - modem ready to receive data


TXSTA (status and control bits for transmission)
TXEN - transmit enable bit

RCREG - receive register/read data


TXREG - transmitter, wrtite 1 byte, send 1 byte (byte by byte)

SPBRG - tune Baud rate
*done by movine decimal literal into this FSR
Baud rate(bit/sec) = Fosc/(64 x (SPBRG+1))

RCSTA (master control of UART)
SPEN - master power on
CREN - continuous receive

PIR1
RCIF - set when there is smtg to send
            clear when RCREG is empty

TXIF - set when TXREG is empty
            clear when TXREG is full


INTERRUPT
INTCON : enable GIR(must enable) or PEIE(for PORTB0,1,2)

INTCON3 : INT(0/1/2)IE (enable bit, to enable PORTB0,1 or 2 as interrupt pin) INT(0/1/2)IF as interrupt flag

INTCON2 : INTEDG(0/1/2) depending on which PORTB used, detect fallin(clear) or rising(set) edge as                             interrupt

remember to check the interrupt flag when an interrupt is detected and use RETFIE (return + set GIE)

SCI Interrupt saya tak tahu =( hope wun come out tomorrow?
used for receiving data

flags to set:
RCIE  in  PIE1 (enable receive interrupt)

RCIF in PIR1 is the interrupt flag to check

*08h and 18h are reserved for interrupts =D


OUTCOME : 
BEST paper EVER !!! for the first time I left whole section blank.... I have no idea how to draw schematic with pen and paper... what a waste of time...
a stupid mistake made... SUBLW is L-W and not vice versa... what ever... I have no faith with digital stuff anyways... not that I do not know... but I have no idea why do I always get low marks during exams... -_-
maybe this is a wake up call? screw all those exams... who the heck cares what your gpa or cgpa is... as long as you know you are doing, that's enough =D

Tuesday, September 14, 2010

MH - Numerical + Statistic Summary

Numerical

nothing much... all formulas... just dun poke wrong, remember change degree to radian ;P


Statistic


Chapter 4
Central Limit Theorem : for a relatively large sample size, the sampling distribution of (Xbar) is approximately normal.  Do not need to consider the distribution of the population. The mean and standard deviation of the sampling distribution of (Xbar) is bla bla bla

  • n>30 (large sample size)
  • sample size+, behaves more like normal distribution, approximation better

2 tail test nid to divide critical value by 2

use t-distribution only when sample size <30 and population de standard deviation not given

type1 and 2 error makan sendiri

Chapter 5
most of the formula nid to memorize.. siez...

dependent and independent nid to determine by care... else will wrong...
y - dependent             x - independent

IMPORTANT !!!!
Correlation table, 5.2.1 nid to hafal !!!!!!!

5.3 need know how to explain

forecasting need to know how to interpret result
x% of variation in y can be explained by the variation in x


Chapter 6
One way ANOVA table(draw)
* need at least 3 population...
*always right tail test

R and Xbar chart (case2)


table 3,4,5,7,8,9,25




OUTCOME:
do till nose bleed... haha.. hands very sore... not hard but many traps... the most obvious is the question 5 variance part... and there is a question 5d ... I almost forgot there is a last question due to panic... used 10miniutes to finish the last question... shioknya ~


question 1b i didnt finish the Gauss elimination, instead I used calculator direct poke answer and write it down ~.~
1c not sure nid to draw R-graph onot... well.. heck care XD 


all the best guyz <3

Monday, September 13, 2010

MH - Fluid Summary

Chapter 1      basics informations

Chapter 2      about pressure, see how much liquid is supplying pressure head then bla bla bla

Chapter 3      Bernoulli, remember stagnation V = 0, pressure expose to atmosphere is 0 and diameter/area

Chapter 5      basic static + dynamics stuff, as long as understand the relative velocity part, then kacang =D

Chapter 7      bonus section, dump all dimensions =D

Chapter 8     extension of bernoulli, find graph nid to be more careful + remember the roughness nid to divide                                         diameter, Kl nid to take care of the exit and entrance portion

Chapter 9      Lift + Drag, anyhow follow equation do =D

Chapter 11   compressible use table/equation, incompressible use Bernoulli, note that use equation better and nid to trial and error if Ma is hard to determine using equation 

Chapter 12     = Chapter 3 + Chapter 8   not much actually, sub into some equation to find extra information



OUTCOME:
Gave my first blood to careless =D forgot how to find density + the i vector + negative heigth + Patm.... HAHhahahahAHAHHA


LoOoL !!!!!


Tuesday, August 31, 2010

MH - Time to get serious ;P

No more slacking for me... Will make a new time table for myself here =D
As you know, I had been slacking after that "incident". Well, no more crying over spilt milk. It's time to take over myself again and be LEGENDARY!!!

It is just for my own reference...

FAQ
Q: Why put it in blog and not in computer?
A: No matter where I go, I can open up my blog and check, and remind myself, savvy?  =D

Wed - finish numerical tutorial
         - Screw this shit! the last chapter is troublesome... RETREAT and REGROUP =(
           Seems like there are some changes in the schedule....

Thurs - finish fluid tutorial
         - This is a long shot from the beginning.... I only finished chapter 5 and 9 ~.~
         - C2, 3 and 7 dunid do bah... so left C8, 11 and 12... so... delay it... what other choices do I have? =(

Fri - finish statistic + practice piano + fluid
     - has to cancel the piano =( prioritize... haha
     - today is hell... smtg stupid happened... haha... seen it coming anyways... Let's put that aside...
     - Statistic went well.. finish revising all chapters, but left 1 last tutorial, SHOULD be able to finish it tml...

Sat - Statistic last tutorial + Super C7,C8 Numerical cheating paper + fluid C11 and 12
      - I did finish statistic and all the notes.. however cant find my numerical tutorial.. do it on next monday =D
      - Regarding fluid... too lazy to study =x tml after MCU bah ;P

Sun - finish MCU tutorial + fluid C11 and C12
       - Only able to finish up C11 and C12... C11 got 1 question not sure...
       - MCU never touch...

Next week

Mon - read MCU notes when waiting sister -_-  + numerical last 2 tutorials + redo fluid C11, C8
        - oops..... forgot to redo C11.. oh well skip it first XD
        - numerical left last tutorial.. do it tomorrow...
        - MCU read finished... still many doubts....

Tue  - finish numerical last tutorial + MCU tutorials
        - finally done everything =D up to schedule hehe ~~~ !!!!

Wed - finish MCU past year
         - I've pulled it off again =D jyjy ~~

Thu - redo all numerical + statistic
       - done all numerical... statistic... gosh... too lazy tml bah =D

Fri - continue redo + statistic + study MCU
     - finished statistic... I think I need to redo tomorrow...
     - I think MCU dunid to revise since there is 1 day extra before the exam...

Sat - redo statistic + all fluid part 1

Sun - redo all fluid part 2

Saturday, August 28, 2010

MH - Final time table Y2S2

14/09/2010   0900   UEME2123 FLUID MECHANICS I   2 hours
Tuesday   (M)BMH-46
S301 (19-35) U0007EBMHF-U0057EBMHF
      
S302 (1-29) U0061EBMHF-U0194EBMHF




15/09/2010   1400   UECM2623 NUMERICAL METHODS AND STATISTICS   2 hours
Wednesday   (M)BMH-51
SE103 (14-64) U0007EBMHF-U0194EBMHF



17/09/2010   1430   UEEA2633 MICROPROCESSOR AND MICROCONTROLLER SYSTEMS   2 hours
Friday   (M)BMH-43
SD205 (83-90) U0007EBMHF-U0032EBMHF
      
SE103 (1-35) U0033EBMHF-U0194EBMHF




18/09/2010   0900   UALJ2013 INTRODUCTION TO JAPANESE   2 hours
Saturday   (M)BMH-33
SE109 (47-79) U0007EBMHF-U0194EBMHF




20/09/2010   0900   MPW2153 PENDIDIKAN MORAL   2 hours
Monday   (M)BMH-23
SD205 (15-37) U0007EBMHF-U0194EBMHF




25/09/2010   0900   UEMH3163 ARTIFICIAL INTELLIGENCE   2 hours
Saturday   (M)BMH-43
S213 (15-31) U0007EBMHF-U0071EBMHF
      
S301 (1-26) U0072EBMHF-U0194EBMHF



So... what is the plan ? Obviously AI and moral do not need to bother, my biggest concern is numerical + japanese..... Gosh... all the critical subjects in a week... haha

So.. Next week finish fluid + numerical, study week finish japanese + MCU, how does that sound? Fingers crossed =D

Friday, August 27, 2010

MH - Let's slaughter the finals =D

The havoc assignment period has finally gone through. I have to say we did quite well.

Good job guys =D

MCU 


Among all subjects, this dissapoints me most. The mid-term test suddenly changed to 20% from 10% making my coursework marks freakingly low... Well, it's not anyone's fault, I should prepare for my own shit and it is my "kewajipan" to do so.






Yup, above is the project we have been working on for a few weeks. I have to say, it is the most impressive work done ever. Thanks Karen for briefing me how to use mcu, appreciate it very much. <3


Artificial Intellingence
For those who follows my posts, the mid term test for this subject is not satisfactory as well... CARELESS.... this shit murdered my exams. Who needs marks anyways? What if your stupid CGPA is 4.0? If you are any less awesome than me, you are still a shitty head !


Our CBIR System GUI

This is our CBIR system project. Well, this program can be said as my baby, I develop it almost by myself =x. Not to brag but, the accuracy is really stunning. 

Unfortunately. some sit back occurs during the presentation, the stupid projector hates NaNa's lappy !!!! So we have to demo it in front of the lecturer. Once I heard he says,"So simple only ar?" ... trust me... my heart shatters.... 

I have this strong believe, "There is always a simple solution to a complicated problem" I also told John that no matter what other people tell you or warn you, ignore them. As long as you know what you are doing, stick to it and have fun.

my friend's AI grouop =D 

From these two projects, I need to thank John for putting all his effort into doing the reports and never let me down.

Above are all past, what I want the most is the final exam. I heard they say the time table is very cramp. "Chuckles" I am damn motivated and excited to sit for it ! So... today is the last day for me to relax =D

There is more to come after the final... My rival... SMART CAR COMPETITION...
Let's hope that I can contain my excitement and would not nose bleed.


Sunday, August 22, 2010

MH - AI Project

Fortunately, the presentation of this project only involves software demonstration. However, this could be a major setback as well. There is a lot of things or you can say it as "features" of our software unable to be presented during the given 10 minutes. To worsen things, the mid-term is crappy, we all need to score in this project badly...

So... back to the drawing board, we are pimping our code =D

To do List:
-Solve the repetition image in check list box
-Create a "user friendly" help button
 credit goes to lengzai kit for reminding me the first loop and teach me how to hide myself ;p

So what's left now is the stupid report....
*The report is three quarter done, left some minor tuning

-report completion due on Wednesday night 10pm
-full program from kenny ( background + button sequence )

MH - MCU Project

MCU

I just downloaded the half done report from John and gosh... lucky go machine ? haha... seems that there is a lot more work to be done.

Check this out, a half done schematic of our project, done by our own Johnny, not too shabby huh?

~ATTENTION~
The group list is published in wble, please go download it. We are group4 the precise demo time is still arranging =D check out the list of projects... haha

"The demo is tentatively planned to be on Friday 27 August from 10:30am onwards. The schedule will be released next week."
Florence Wble





To do List:
Sunday
-Redo the cute little report
-Query John John for latest schematics
-Count delay
-Comment from NaNa 


Monday
-John Boi no schematic
-NaNa no flow flow
-Go SB Lab play Matlab with Johnny
*The Simulink in Matlab is fun to use, it is filled with joy XD

*Uncle Kock cant make it tomorrow... so we have to delay our plans =(

Tuesday
-Add in delay
-Extend the CBlock
-Pictures of our product
-Make sure everyone understands the stupid coding

*well... nobody replies me... delay again.... maybe I should be more like Celine, CALL  THEM !!!!

Saturday, August 21, 2010

MH - Hii Hii bully us also =(

Today's Statistic mid term is a total RIP OFF !!!

Chapter 1 is not out and i spent almost all my time memorizing the stupid equations... Should have spent them watching anime -______-

first second question of PartB is stupid, i guess the only thing i can blame is myself for not doing the tutorial =p

the last question is a total rip off !!! after completing the paper I spent 15 minutes checking my work then i found out that the X value is less than 0.4... I panic-ed and since there is only 1 minute left, I could not finish the correct answer in time. I think the correct answer should be  P(Z<xxx) = 1-P(Z>0.4).... any comments?

BEEF JERKY... first is stupid AI now is Statistic... the stupid fluid also... no point crying over spilt milk... Nobody tells me not to focus more on academic, I was digging my own grave all along  =(

MH - 3 Hours of Entertainment?

Blue top, sexy jeans with high heels and cute pony tail... Gosh it was the perfect combination...

The 3 hours replacement class was not as bad as imagine. I got entertained till the end.

New Vocab Learnt:
Chocolate Flow < most imba

New Quote of the day:
It's Ghost Moo., They come out and find me, eee tonight I lock myself in room do not go out. What? Keep quiet, YOU, SHUT UP !!!!

Well she said that our second mid term is a nightmare and final is harder by a lot (might be a good news to some of us). There are some parts in chapter 10 is fyi (not cover in final), refer to Tin Tin for more details.

After 2 and half hour of fishing and giving lemon to "someone" << not ah hao... =x  She finally is going to distribute the papers. Below are marks of the mid term for my group:

Hao Ger  12 << GG
Celine Chong 12
LouHai 17
Dai Lou 20 <<GG
Kock  26
NaNa 27

Tin Tin and me got 38 , we are brothers till the end =D
Tin Tin is very evil, he do not tell me that we are required to calculate all the pi terms. This is also the most common mistake for all of us.

GG?
Hao Ger and Dai Lou has been caught doing smtg naughty during the exam. Initially both of them got 12 marks, after Hao Ger's confession and apology, Bee Bee added back 8 marks for Dai Lou... Poor kid =(

Furthermore, for those who put FL^-3 for pressure dimension, 1 mark will be deducted. However Bee Bee today happy and since it is ghost moon, she is afraid to gather karma. Thus, she let us go... should have deducted 1 marks... stupid Tin Tin dun tell me nid to count pi term =(

Lastly, 5 marks will be added to anyone who has written names of their neighbors during the exam.

Friday, August 20, 2010

MH - Besok Statistic exam !^@#$!@# _l_

oh crap.... today's AI exam i screwed it... haha... half way preparing for tomorrow's exam, I found out that my AI mid term Q2b forgot to multiply something, 15 marks gone....

What had became of me? normally these type of exams are peanuts.... ARGHH $^!$@#%$!@#$!@#$!@#%^!@#^!@#%

oh well... better luck next time ;p

About tomorrow's exam... formulas formulas and formulas... hope i would not screw it....
Best of luck to myself =D

gosh... 12.24.... studying back form5's work... sigh.....

BET BET HAI !#%!@#%!@#$@#  chapter 3 formulas all in table... memorize for what ???????