ALGORITHM [ PART – 2 ]

October 14th, 2015 by drih No comments »

Last post i’m talking about PROBLEM, in Algorithm, and in this post, i will talking about

  • BRANCHING ( SELECTION )
  • LOOPING ( REPETITION )

BRANCHING [ SELECTION ] IN ALGORITHM

Branching or Selection is usually used when we want to do something with some situation or condition,
when the situation or the condition is YES, we will do action A, but if the condition is NO, Action B wil be executed.

The work flow is same in pseudo-code, we just write

If Condition A == Expectation Then
DO THIS
Else
DO THIS

or

If Color of apple == Red
EAT THAT APPLE
Else
THROW AWAY THAT APPLE

that is an example for Pseudo-code, in some Programming language, we type

if ( Condition)
{
Something to do
}
else
{
Other thing to do
}

for example

if ( i == 1 )
{
printf(“The value of I is one!”);
}
else
{
printf(“The value of I is not one!”);
}

LOOPING [ REPETITION ] IN ALGORITHM

Looping or Repetition is type of algorithm to do the same thing for a given amount of time.
For example, we must write some word 10 times, so, in Algorithm we use Looping for Writing down that word 10 times.

in Pseudo-code the form of Looping are like this

DO
Write some word
FOR 10 TIMES

or

counter = 0
DO
Write some word
Increase counter by 1
WHILE counter < 10

 

in programming world, we have 3 types of Looping, they are

FOR (Condition) {Statement}
DO {Statement} WHILE (Condition)
WHILE (Condition) {Statement}

WHILE (){} and FOR () {} looping is the same style, so that is doesn’t matter you want to use WHILE (){} or FOR (){}
but, they are different with DO {} WHILE {}, the difference is at the way the statement is executed
WHILE(){} or FOR(){} looping is executing the statement AFTER checking their condition,
DO {} WHILE () looping is executing the statement FIRST and then checking their condition.

 

 

 

In Algorithm, or especially, in programming, we have operands and operators for some math operation

Operator  is symbolic character that used to count some operands, is that Sum, divide, multiply, etc.
Some known operators are

  • + [ Plus ]
  • – [ Minus ]
  • / [ Divide ] ( for dividing operation )
  • * [ Multiply ] ( for multiplying operation )
  • = [ Equals ]

 

Academic Orientation – Learning Algorithm [ Part 01 ]

September 14th, 2015 by drih 1 comment »

Hi,

From now, i will talking / discussing about the lessons, in this article, i will talking about Algorithm, this is a lesson that i learned while i follow the orientation. Because i have learned this before, so i will make this article to be a tutorial or learning article, i’ve been studying this since 1 SMK ( Vocational High School ), and i choose vocational of software engineering ( Typo ? Miss Spelled ? Wrong Sentence ? Wrong Verb ? >> Sorry, i’m still learning ).
So, lets begin.

 

The point of this lesson is,

  • Definition of Algorithm
  • Definition of Problem
  • Programming ( Yeah!!! )

 


 

Definition of Algorithm

Algorithm is some or specified method for solving some problem, precisely, a computing problem.

Algorithm usually used for Step by Step procedure for some calculations int Math.

Who found the Algorithm ?
This,

Al-Khawarizmi
( Muḥammad bin Mūsā al-Khawārizmī )
So, what is the Algorithm ? Specifically ?

Algorithm is

Set of sequential instructions, the functionality is to describe important processes in producing an output with some specific required input.

Some simple example,

  1. Wakeup
  2. Get out of bed
  3. Take off pajamas
  4. Get dressed
  5. Eat breakfast
  6. Carpool to work

( I copy that example from presentation file, that because i’m not really good to give an example )

That was Normal Example of an Algorithm.
And this is some example that use Pseudocode style.

START

Take a plate
Put rice and dishes on the plate
Take spoon and fork
Repeat

Hold spoon and fork
Scoop up rice and dishes
Put rice and dishes on the mouth
Put spoon and fork
Chew rice and dishes

Do until rice and dishes finished

END

That was pseudocode formed algorithm.
We can read there are Repeat and Do ——–
That means, that process will be repeated until rice and dishes empty ( i think, that should be empty, not finished )
If you are asking me,

So, what’s the relation with making games ?

>> This is base requirement for making games, actually this is the most important thing that you have to learn if you want to make some games, or just being a programmer. Why ? That’s because algorithm train your logic, and “LOGIC” is the important thing you will need in programming world.

And in algorithm, there are known as Flow Charts, and this is the list of the Flow Chart

Flowchart

 

 

 

 

We continue this lesson on next part, thank you for reading 🙂

HTTP Event ( HIMTI Togetherness & Top Performance )

September 13th, 2015 by drih No comments »

Hi!
Welcome back to my another article.
If you have read my previous article and if you remember, i join to 2 organization, but, actually, i join to another organization too ( actually, i not join this organization, but, this organization is officially handle all student from School of Computer Science, so i’m automatically registered to this organization ).

And you will ask, “So, what’s the problem ?”.

Nothing ( lol )

 

No, no, i’m just kidding.

So, why i typing this ? That’s because i join to this organization’s event, which is named “HTTP”.
Because i’m programmer, then you will think HTTP is Hyper Text Transfer Protocol right ? ( You know, you would have thought like that if you are not reading the title )

Even, if you have read the title, i will re-type that again.

So, HTTP is HIMTI Togetherness & Top Performance. Which mean HIMTI is the name of the organization.

 

You know, actually, i don’t know what should i type here. So, if you are not understand about this article, sorry.

( If you are not understand caused by my english proficiency, im really really sorry about that )

Okay, lets begin.

 

First, i’m wake up in the morning, precisely at 5 o’clock. I take a bath. Change my clothes. And then go to Anggrek Campus.
And from there, i’m ( actually, with other student too ) going to the BPPT Building using bus.
Once there, i and other students walking around for watching some Game built by Binusian.
There are many games, and all of them is ported to the Mobile Platform ( i think i saw one game that ported to the PC Platform, i just can’t remember )

After we took some minute to watching some game, we were informed to get into the room. Once there, we must wait some minute while watching some Movies for waiting schedule.
And the First Performance was out. There is person singing a song on stage.

Not bad. Nice begining.

And then, the second performance is band performance. The band is singing 2 songs.

From this performance, the event quality is decreased. I don’t know why, maybe that because i don’t know the song ( You can call me a Computer Geek, and also im an introvert, so i don’t know the public information, news, songs, or whats hot now, except Japanese songs, Indonesian news, Dota 2 Hot Tricks and Infos ), or maybe caused by quality of sound, i can’t hear clearly.

And i say,

Ok, not a problem, not too bad.

And then the MC tell me and other students to dance and follow the music.

What ? Seriously ? This is too sudden! I’m not ready about this!
Then i see around, and, boom!
Everyone felt awkward and didn’t want to dance.
What a fail event. Awkward moment has come. But, some students start dancing to help this event.
Good job! And sorry i can’t help.

Then time passed. Next session is Talkshow.

I hope this session is not another awkward moment again.

And the session is started.

They have 2 interviewees.
First, he is Laksamana Mustika a CEO of ElvenDigital company ( Newtab Link ).
And the second is Tyovan a CEO of Bahaso ( Newtab Link ).

This session is talking about, how to be a technopreneur ( Sorry if i miss spelled ).
What should we do, what should we prepare, what is the worst situation, and what is the benefit being a technopreneur.

I can’t type all conversation and i don’t have the recorded version of the conversation, that because i sit at the back and my phone has no battery. I just can type the Laksamana’s Quote.

What you have to do is dreaming, then wake up, do all events occur in your dream, and then create more network ( Relationship ).

And then the Talkshow session is finished. Then other sessions began.

I can’t type all session, sorry, maybe i just type the Title of the session. Why ? That’s because too many for me.

Next Session is “Visualization”, a performance about joining HIMTI organization.

And then Guest Star ( i don’t know who are they, remember, i’m a Computer Geek and an Introvert ), the guest star is sing 5 songs.

And the last is DJ. ( Am i miss spelled ? Is that should b DJ’s ??? I don’t know about it. In fact, i just sit down and wait the event to finish. )

 

Okay, thank you if you read all of this, and sorry for my english proficiency.

See you on another article.

 

Organization Expo

September 12th, 2015 by drih No comments »

Previously, i have posts about General Orientation at Binus University.

And now, i will talk about Organization Expo at Binus University, precisely, at Syahdan Campus.

That was saturday, and also the last day of my General Orientation session in Freshment Enrichment Program.
First, i gather with all New Binusian from 2nd Batch ( BBN ), and then we must perform our ( class ) “Yell, yell”.
The other class have a cool “Yell, yell”, but the point of this session is “Togetherness”, not a competition, so, we just enjoy the session.

After the session is finished,  we all are walking around the campus to see all Organization that exists at Binus University.
There’s a lot of Organization that exists at Binus University, but, there’s some Organization that makes me interested. That’s is :

Binus Game Development Club ( BGDC )
Teach For Indonesia ( TFI )

PS : I’m not sure if i only join to 2 Organization, but that’s all what i remember ( lol )

 

Why i choose to join BGDC ?

That’s because i want to improve my skills, precisely, about game development. So, i think BGDC is the right place for me.

Why i choose to join TFI ?

The first reason is, “I don’t know, i just want to join.”
The second reason is, “I think, i can help / teach other, even what i can do is just coding.”
The third and maybe the last reason is, “I think, i can help / teach other with my skill and use a computer as teaching media.”

Okay, this is the end of the article, thankyou, see you next post.

PS: If you have found something wrong with my “English Language”, please tell me, if you want to, this is my email
LINK

General Orientation at Binus University

September 10th, 2015 by drih No comments »

This is my first step to being a Game Developer, that is school at Binus University, and i choose Game Application and Technology program.

Before i can start the lectures, i must attend some orientation.

In General Orientation, i’m really new about the school, about the school system and curriculum.
And the other thing that new for me is, the people who school here, not just about the face, or the name, but all information about them.

And then you ask me why ?
That’s because i’m a newcomer in this town ( Jakarta ). And i am come from Bandung, so, yeah, i also new about the Language, about the Dialect, i’m feeling like a stranger here. And i’m sure, not just me who feeling like this, because, a lot of them come here ( Jakarta ) is originated from other city, even from other island.

In this orientation, we do some introduction.

From Self Introduction, School Introduction, System and Curriculum Introduction and more, and that’s all we do for one week.

And this is end of this article.