Wednesday, December 12, 2012

Dragon Nest T4 lv 50 Crusader PvE/PvP Hybrid Build

Today i will post about my once favored game, Dragon Nest. My first char was a Cleric and advance into Paladin, and later on 50 cap become a Crusader. This build is my own preference for casual PvP and PvE players. This is not the best nor the worst, because all builds have their weaknesses and strong point, hence i believed the best build is the build that you build by your own preference.

Crusader is a Cleric's 3rd job and advanced from a Paladin. All Crusader skills are focused more as DPS and losing its path through defence. If you want more tanky and stunny(justice crash) you can choose Guardian as your 3rd job. Here is a quick link of my build, you can see damage, cooldown and all other info in this skill calculator :
http://dnarmory.com/skill-calc?i=4-20-42-50#AnGEX.kNjXgWp_obN84H

You can build your very own Crusader build, following this link:
http://dnarmory.com/skill-calc?i=4-20-42-60

Here is my build picture :



















Here's my quick explanation on my build :
1st - Cleric's tree
  • Lv 1 Righteous Bolt : a requirement for Lightning Zap(Paladin's Tree).
  • Lv 1 Paralyze Bolt : i think you already know how useful this skill is in PvP.
  • Lv 1 Dive Kick : to catch opponet that are far from you, and continue your combos.
  • Lv 6 Sliding Knee Kick : lv 6 of this will give you extra kick when activated, and for me its very useful for bouncing your opponet again for continuation of combos.
  • Lv 4 Block : Super useful in PvE and PvP Comp ON (not softban).
  • Lv 8 Heal : Okay. I think you guys agreed to max it :)
  • Lv 4 Toughness, Lv 4 Aerial Evasion, Lv 5 Sliding Step, Lv 1 Mental Fortitude, Lv 3 Attituned Mind : passives are useful in pvp, and for me i like regeneration more than maxing the mp pool.
2nd - Paladin's Tree
  • Lv 12 Holy Relic : i think its one of a main DPS for crusaders. short cooldown, and Holy Relic EX will give you more wide area and 50% damage. And also you can change your Relic-EX placement during casting, not like the non-EX version. 
  • Lv 6 Lightning Zap : i just take it lv 6 because it gives much damage on lv 6 as the skill damage amplifies. I personally dont think to max it because warriors can easily use "Relieve" and your lightning zap would be useless on pvp.
  • Lv 7 Electric Smite : a must-maxed skill. main DPS skill for all paladins. and a super armor breaker.
  • Lv 6 Armor Break : same as Smite, this one has a short cooldown and a medium super armor breaker.
  • Lv 4 Auto BLock : helps you from being combo'ed by the other player , by luck :)
  • Lv 3 Elemental Aura : i think its useful both in pve and pvp(againts elemental lords).
  • Lv 2 Conviction Aura : very useful for a solo player and 1vs1.
  • The others lv 1 i think not worth spending SP on those skills. Shield Charge is just for mobility and flinching. Just sacred hammering who is worth SP-spending on the next 60 cap, because of Sacred Hammering EX. However sacred hammering has a long cooldown on pvp, so i found it not so useful.
3rd - Crusader's Tree
  • Lv 1 Judgement Hammer : medium-armor  breaker, low damage but have a short cooldown and long ranged, its good to combo this with your holy relic ex.
  • Lv 1 Crusader's Zeal : only useful in PvE, i think. it will not give much bonus in pvp.
  • Holy RELIC EX : ITS A MUST :) I LOVE THOSE GIANT RELICS.
For the heraldy skill plates, i recommend :
  • Half Turn Kick : Action speed
  • Electric Smite : Damage
  • Armor Break : Damage
  • Holy Relic : Damage
  • Holy Kick : Action speed

Ok thats all i hope you guys get something useful from this post, thank you :D

PROGRAM PASCAL TEKNIK INSERTION

Berikut ini adalah program implementasi teknik Insertion Sorting menggunakan program Turbo Pascal :

program Insertion;
uses crt;
var input : array [1..10] of integer;
banding,tukar,jumlah,i,j,k,l,m,temp:integer;
begin
clrscr;
writeln('PROGRAM TEKNIK INSERTION');
write('Masukkan jumlah data , maksimal 10 : ');readln(jumlah);
for i := 1 to jumlah do
    begin
        write('Masukkan data ke -',i,' : ');readln(input[i]);
    end;
for j:= 2 to jumlah do
    begin
    l := j;
    m := j-1;
    for k:= j-1 downto 1 do
        begin
        if input[l] < input[m] then
            begin
            temp := input[l];
            input[l] := input[m];
            input[m] := temp;
            tukar := tukar+1;
            end;
        if m > 1 then
            begin
            l := l-1;
            m := m-1;
            banding := banding+1;
            end;
        end;
    end;
for i:= 1 to jumlah do
begin
write('Data ke -',i,' yang sudah di sortir : ');writeln(input[i]);
end;
write('Jumlah perbandingan : ');writeln(banding);
write('Jumlah pertukaran : ');writeln(tukar);
readln;
end.

Tuesday, December 11, 2012

Apa itu Big Oh? sebuah pertanyaan besar



Big Oh

Big Oh adalah fungsi yang berkaitan dengan kelajuan proses, dan biasanya digunakan dalam analisis suatu algoritma untuk menentukan efisiensi dan kompleksitasnya.
-T(n) = O(f(n))
 Bila ada suatu konstanta C, maka :
-T(n) ≤ C.(f(n))
Contoh Lain :
·        Jika f(n) = 5n2 maka T(n) = O(n2)
·        Jika f(n) = 7n2 + 3n + 5 maka T(n) = O(n2)
·        Jika f(n) = n3 – 2n + 8 maka T(n) = O(n3)
Klasifikasi Algoritma berdasarkan notasi Big Oh :
1.      T(n) = c
Disebut sebagai algoritma konstan, dimana programnya hanya dieksekusi dengan suatu nilai yang konstan. Bersifat konstan dan tidak dipengaruhi parameter atau banyak ada yang dieksekusi. Merupakan algoritma yang paling ideal.
Contoh Program Pascal :
Begin
A:=7;
End.
Maka T(n) = O(1), karena program hanya dieksekusi satu kali, dan konstan.

2.      T(n) = O(n)
Disebut algoritma linear, dimana waktu eksekusinya sebanding dengan jumlah data, dan merupakan kondisi optimal dalam membuat algoritma.
Contoh Program Pascal :

Begin
For I := 1 to n do
            Begin
            A:=A+1;
            End;
End.
Maka T(n) = O(n) karena program dieksekusi sejumlah n kali.

3.      T(n) = O(n2)
Disebut algoritma kuadratik, karena waktu eksekusi program akan sebanding dengan jumlah kuadrat jumlah data. Biasanya timbul karena adanya nested loop atau loop bersarang pada suatu program.
Contoh Program Pascal :
Begin
For I := 1 to n do
            Begin
            For J:=1 to n do
                        Begin
A:=A+1;
                        End;
            End;
End.
Loop dalam di eksekusi n kali. Loop luar di eksekusi n kali. Oleh karena itu T(n) = O(n2) dan program di eksekusi n x n atau n2.

4.      T(n) = O(log n)
Disebut algoritma logaritmik, karena waktu eksekusi sebanding dengan logaritma dari jumlah data. Biasanya algoritma ini digunakan untuk memecahkan masalah besar menjadi masalah yang lebih kecil.
Contoh : algoritma Binary Search dan algoritma fungsi rekursif.

5.      T(n) = O(n log n)
Disebut algoritma linearitmik, karena merupakan gabungan dari linear dan logaritmik, biasanya digunakan untuk memecahkan masalah yang besar menjadi masalah yang lebih kecil dan diselesaikan secara terpisah, lalu kemudian hasilnya digabungkan.
Contoh : algoritma Quick Sort.




6.      T(n) = O(n3)
Merupakan algoritma yang buruk dan sebisa mungkin dihindari, biasanya algoritma ini dihasilkan dari 3 buah nested loop atau 3 buah loop bersarang.
Contoh program Pascal :
Begin
For I := 1 to n do
            Begin
            For J:=1 to n do
                        Begin
For K:= 1 to n do
            Begin
            A:=A+1;
            End;
                        End;
            End;
End.
Loop terdalam di eksekusi n kali. Loop tengah di eksekusi n kali. Loop luar di eksekusi n kali. Oleh karena itu T(n) = O(n3) dan program di eksekusi n x n x n atau n3.


Program Pascal Binary Search

program binary_search;
uses crt;
var input:Array [1..30,1..3] of integer;
    jumlah,i,j,cari,langkah:integer;
    isi:boolean;

procedure mencari;

function cektengah(var z:integer):integer;
var     x:integer;
    ada: boolean;
begin
    x := 1;
    ada := false;
    while not(ada) do
    begin
        if (z = input[x,2]) then
        begin
            cektengah := x;
            ada := true;
        end
        else
            x := x+1;
    end;
end;

function cekkirkan(var z:integer): integer;
var     x:integer;
    ada: boolean;
begin
    x := 1;
    ada := false;
    while not(ada) do
    begin
        if (z = input[x,1]) or (z =input[x,3]) then
        begin
            cekkirkan := x;
            ada := true;
        end
        else
            x := x+1;
    end;
end;

begin
j := cektengah(cari); langkah := 1;
        while (j > 1) do
        begin
            i := input[j,2]; j := cekkirkan(i);
            if (input[j,1] = i) or (input[j,3] = i) then
            begin
                langkah := langkah + 1;
            end;
        end;
writeln('Angka ditemukan dalam ',langkah,' langkah');
end;


procedure masuk;

function cektengah(var z:integer):integer;
var     x:integer;
    ada: boolean;
begin
    x := 1;
    ada := false;
    while not(ada) do
    begin
        if (z = input[x,2]) then
        begin
            cektengah := x;
            ada := true;
        end
        else
            x := x+1;
    end;
end;

begin
j:=1;isi:=false;
while not(isi) do
      begin
           if (input[i,2]>input[j,2])then
           begin
                if (input[j,3]=0)then
                begin
                input[j,3]:=input[i,2];
                isi:=true;
                end
                else j:=cektengah(input[j,3]);
           end
           else
           begin
                if (input[j,1]=0) then
                begin
                input[j,1]:=input[i,2];
                isi:=true;
                end
                else j:=cektengah(input[j,1]);
           end;
      end;
end;

begin
clrscr;
writeln('***************************');
writeln('  Program  Binary  Search  ');
writeln('***************************');
writeln('*****PROGRAM DIMULAI*******');
write('Masukan jumlah input : ');readln(jumlah);
for i:= 1 to jumlah do
    begin
    write('Masukkan elemen ke -',i,' : ');readln(input[i,2]);
    input[i,1]:=0;input[i,3]:=0;
    end;
for i:= 2 to jumlah do
    begin
    masuk;
    end;
writeln('****************************');
write('Masukan angka yang dicari : ');readln(cari);
mencari;
writeln('***********************************');
writeln('Terima kasih atas partisipasi anda!');
writeln('*********PROGRAM SELESAI***********');
readln;
end.