• Pada Algoritma pencarian banyak yang bisa kita temukan atau gunakan. Ada Merge Sort, Quick Sort, Bubble Sort, dan...
  • Pada dasarnya algoritma searching banyak kita jumpai. Apalagi hanya untuk mencari nilai minimum dan nilai maximum...
  • Kalian pasti sudah tahu apa itu Deret Fibonacci, ya benar. (Padahal gak jawab). Tetapi pada pembahasan kali ini kita akan membuar program...
  • Metoda Pencarian Biner ( Binary Search) hanya bisa diterapkan jika data array sudah terurut. Pengurutan Array bisa menggunakan jenis sorting ...
  • Salah satu contoh tipe algoritma brute force lainnya adalah linear search (pencarian berurutan), Dikatakan demikian karena algoritma ini menggunakan ...

Saturday, October 15, 2011

Displays Unique Array Series

Not really long post on my favorite blog. Miss all of you equally. This time I will share about the unique array. What I mean by an array of unique? I mean that is an array that is displayed is the number that has no similarity of numbers in the input data. Sorry if my language covered. Hehehe ...
Immediately, at its core. As an illustration,
for example we will enter 4 data arrays of 1,3,3,5. Then the numbers will be displayed at only 1 and 5. It is called with an array of unique.
Have now towards the crime scene. We will make the function sebegai follows:


Here I use the variable C to help detect an array of unique. At each examination found no similar array data then the value of c will be increased by one. So we get that if the value of C == 0 then the data is a unique data. After that it will be directly printed.
You all can develop a program with better. This is just for reference only. For programs running that are ready can more clearly let you download memalui link below:
C + + program
 Java Program
A few old friends, hopefully be able to let go of the miss. Hopefully useful!

Jadilah yang pertama mengomentari

Post a Comment

Tutorial Algorithm and Programming ©Template Blogger Green by Dicas Blogger.

To Up