Kamis, 16 Juni 2011

Algoritma Menghitung Luas Lingkaran dan Algoritma Menghitung Nilai Rata-Rata Sejumlah Angka yang Dimasukan Lewat Keyboard

1. Algoritma menghitung luas lingkaran

Algoritma Luas_lingkaran
{menghitung luas sebuah lingkaran apabila jari-jari tersebut diberikan}

Deklarasi
{Definisi nama tetapan}
cont N = 10;
cont phi = 3.14;
{Definisi nama peubah / variabel}
real jari_jari, luas;

Deskripsi
read(jari_jari);
luas = phi * jari_jari * jari_jari;
write(luas);


2. Algoritma menghitung nilai rata_rata sejumlah angka yang dimasukkan lewat keyboard

Algoritma nilai_rata
{menghitung nilai rata sejumlah bilangan yang dimasukkan lewat keyboard}

Definisi Variabel
integer x, N, k, jumlah;
real nilai_rata;

Rincian Langkah
{masukan jumlah data}
read(N);
k <-- 1;
jumlah <-- 0;
while (k <= N) do
{baca data}
read(x);
jumlah <-- jumlah + x;
k <-- k + 1;
endwhile

{hitung nilai rata}
nilai_rata <-- jumlah / N;
write(nilai_rata);

CONCEPT AND NATURE OF ALGORITHM



1. Algorithm Concept
The algorithm is a foundation that must be mastered by every student who wants to solve a problem is structured, effective and efficient, especially again for students who want to develop a computer program to solve a problem.
Definition
Algorithm: 1. Mechanical preparation of problem-solving steps in the form of sentences with a limited number of words, but arranged in a logical and systematic.
2. A clear procedure to solve a problem by using certain measures and limited in number.
Historical Note
Abu Ja'far Muhammad ibn Musa al-Kwarizmi, author of "Algebra wal Muqabala" several centuries ago (in the IX century), regarded as the originator pertaman algorithm because in the book of Abu Ja'far explained the steps in solving various problems arithmetic (algebra), most likely the word "algorithm" is taken from the word "Al-Kwarizmi" which later became berbubah "Algirism", then became the "algorithm".
Algorithm Characteristics
Donald E. Knuth, an author of several books algorithms twentieth century, states that there are some features of the algorithm, namely:
1. The algorithm has a beginning and an end. An algorithm must stop after doing a series of tasks or in other words, an algorithm has a finite step.2. Each step must be defined properly so it does not have a double meaning (not ambiguous.)3. Having input or initial conditions.4. Have the output or final conditions.5. Algorithms must be effective, if followed will really solve the problem.
Algorithm properties
Based on the features of the algorithm described by Donald Knuth and the definition of algorithms will be able to conclude the main properties of an algorithm, which is as follows:
1. Input: An algorithm has an input or initial condition before the algorithm can be implemented and pengibah values ​​taken from a special set.2. output: An algorithm will produce output after execution, where the output value obtained from input values ​​that have been processed through the algorithm.3. Definiteness: The steps are written in well-defined algorithm that is easily implemented by the user algorithm.4. Finiteness: An algorithm must provide conditions for the final or output value after a finite number of steps amount to any initial conditions or a given input.5. Effectiveness: Each step in the algorithm can be implemented within a certain time interval which in turn gives the solution as expected.6. Generality: The steps the algorithm applies to any given set of inputs that correspond to issues that will be given, not only for a particular set.
In order to form penyusunanya algorithms and processes can begin to understand the following will be described the process of making the algorithm starts form that uses everyday language, followed by the algorithm description format that can be used as a reference, and some examples of making the algorithm that follows this format.
Example: Develop algorithms for finding the largest number (maximum) of a finite set of integer numbers.
Solution:1. Suppose the first number in the collection is the largest (maximum).2. Compare this with the maximum rate the following numbers in the collection. If the number     is greater then make the maximum.3. Repeat step 2 is thus no longer have the numbers remaining in the set.4. Stop the comparisons after each number is complete compared to the largest number in the set is the last maximum.
The solution in the form of instruction symbols are as follows:
1. Suppose N = number of digits in the set.2. Index = 13. Maximum = number (index)4. During index <N, do:             a. index = index + 1             b. if the number (index)> max then max = number (index)             c. repeat again for the next index5. The biggest numbers in the set is the last maximum.
A specific algorithm can be written using everyday language such as the above example. However, such algorithms are still difficult to directly translate when will be implemented into a computer programming language. Each algorithm of course requires a step "transition" into a language program when the premises will be implemented using a computer so that the closer the form of the algorithm into a form of computer programs, the more easily translated. An algorithm like this can only be used for a particular language support program and was forced to be changed back to be adjusted if it would be implemented with other language support programs.

KONSEP DAN SIFAT ALGORITMA



1. Konsep Algoritma

Algoritma merupakan pondasi yang harus di kuasai oleh setiap mahasiswa yang ingin menyelesaikan suatu masalah secara berstruktur, efektif dan efisien, teristimewa lagi bagi mahasiswa yang ingin menyusun program komputer untuk menyelesaikan suatu persoalan.

Definisi

Algoritma
1. Teknik penyusunan langkah-langkah penyelesaian masalah dalam bentuk kalimat dengan jumlah kata    terbatas, tetapi tersusun secara logis dan sistematis.
2. Suatu prosedur yang jelas untuk menyelesaikan suatu persoalan dengan menggunakan                  langkah-langkah tertentu dan terbatas jumlahnya.

Catatan Sejarah

Abu Ja'far Muhammad Ibnu Musa Al-Kwarizmi, penulis buku "Aljabar wal muqabala" beberapa abad yang lalu (pada abad IX), dianggap sebagai pencetus pertaman algoritma karena di dalam buku tersebut Abu Ja'far menjelaskan langkah-langkah dalam menyelesaikan berbagai persoalan aritmatika (aljabar), Kemungkinan besar kata "algoritma" diambil dari kata "Al-Kwarizmi" yang kemudian berbubah menjadi "Algirism", selanjutnya menjadi "Algorithm".

Ciri Algoritma

Donald E. Knuth, seorang penulis beberapa buku algoritma abad XX, menyatakan bahwa ada beberapa ciri algoritma, yaitu:

1. Algoritma mempunyai awal dan akhir. Suatu algoritma harus berhenti setelah mengerjakan serangkaian tugas atau dengan kata lain suatu algoritma memiliki langkah yang terbatas.
2. Setiap langkah harus didefinisikan dengan tepat sehingga tidak memiliki arti ganda (not ambiguous).
3. Memiliki masukan atau kondisi awal.
4. Memiliki keluaran atau kondisi akhir.
5. Algoritma harus efektif, bila diikuti benar-benar akan menyelesaikan persoalan.

Sifat Algoritma

Berdasarkan ciri algoritma yang dipaparkan oleh Donald Knuth dan definisi algortima maka akan dapat disimpulkan sifat utama suatu algoritma, yaitu sebagai berikut :

1. Input : Suatu algoritma memiliki input atau kondisi awal sebelum algoritma dilaksanakan dan bisa berupa nilai-nilai pengibah yang diambil dari himpunan khusus.
2. output : Suatu algoritma akan menghasilkan output setelah dilaksanakan, dimana nilai output diperoleh dari nilai input yang telah diproses melalui algoritma.
3. Definiteness : Langkah-langkah yang dituliskan dalam algoritma terdefinisi dengan jelas sehingga mudah dilaksanakan oleh pengguna algoritma.
4. Finiteness : Suatu algoritma harus memberi kondisi nilai akhir atau output setelah melakukan sejumlah langkah yang terbatas jumlahnya untuk setiap kondisi awal atau input yang diberikan.
5. Effectiveness : Setiap langkah dalam algoritma bisa dilaksanakan dalam selang waktu tertentu sehingga pada akhirnya memberi solusi sesuai yang diharapkan.
6. Generality : Langkah-langkah algoritma berlaku untuk setiap himpunan input yang sesuai dengan persoalan yang akan diberikan, tidak hanya untuk himpunan tertentu.

Agar bentuk algoritma dan proses penyusunanya dapat mulai dipahami maka berikut ini akan diuraikan proses pembuatan algoritma mulai bentuk yang menggunakan bahasa sehari-hari, disusul penjelasan format algoritma yang dapat dijadikan acuan, dan beberapa contoh pembuatan algoritma yang mengikuti format tersebut.

Contoh : Susun algoritma untuk mencari angka terbesar (maksimum) dari suatu kumpulan bilangan bulat yang terbatas jumlahnya.

Solusi :
1. Anggaplah angka pertama dalam kumpulan tersebut adalah yang terbesar (maksimum).
2. Bandingkan angka maksimum ini dengan angka berikut dalam kumpulan. Bila angka tersebut lebih besar maka jadikanlah maksimum.
3. Ulangi langkah 2 ini sehingga tidak lagi ada angka yang tersisa dalam himpunan.
4. Hentikan pembandingan setelah semua angka selesai dibandingkan sehingga angka terbesar dalam himpunan tersebut adalah maksimum terakhir.

Solusi tersebut dalam bentuk simbol instruksi adalah sebagai berikut :
1. Andaikan N = banyaknya angka dalam himpunan.
2. Index = 1
3. Maksimum = angka (index)
4. Selama index < N, lakukan :
              a. index = index + 1
              b. bila angka (index) > maksimum maka maksimum = angka (index)
              c. ulangi lagi untuk index berikutnya
5. Angka terbesar dalam himpunan adalah maksimum terakhir.

Suatu algoritma tertentu dapat ditulis dengan menggunakan bahasa sehari-hari seperti contoh diatas. Namun, algoritma seperti ini masih sulit untuk langsung diterjemahkan apabila akan diimplementasikan ke dalam suatu bahasa pemrograman komputer. Setiap algoritma tentu saja memerlukan suatu langkah "peralihan" ke suatu bahasa program ketika akan dilaksanakan denga menggunakan komputer sehingga semakin dekat bentuk algoritma ini kedalam bentuk program komputer maka semakin mudah diterjemahkan. Suatu algoritma seperti ini hanya bisa digunakan untuk bahsa program tertentu dan terpaksa diubah kembali untuk disesuaikan apabila akan diimplementasikan dengan bahsa program yang lain.  

Rabu, 15 Juni 2011

HACKER REGULATION


Every hacker must obey orders - orders that have been agreed upon. In contrast to the cracker, cracker do not care about the rulesof origin where its interests are met they are happy without seeingother people suffer. Some hackers rules are as follows:

1. Work ethically.

The word ethical in this context can be defined to work with theprofessionals by taking into account the moral aspects andprinciples upheld. Any who do must uphold the truth and not hideinformation that should be displayed.

2. Respect privacy.

All information obtained during testing of web applications to thepassword should still be kept confidential. Do not disseminateconfidential information to persons who have no interest in theinformation.

3. Not cause the system to crash

One of the biggest mistakes made ​​by people is when they tried tohack a computer system is causing the computer system to crash.This happens because they do not understand the usefulness or thetechnique of existing security tools.
You can easily create DoS conditions on the system while testing.Running too many tests and too fast to do so will cause the systemto be locked. Many security tools that can be used to control how much testing done on the system at the same time.

PERATURAN HACKER


Setiap hacker harus mematuhi perintah – perintah yang sudah di sepakati bersama. Berbeda dengan cracker , cracker tidak perduli dengan peraturan dimana asal kepentingannya sudah terpenuhi mereka sudah senang tanpa melihat orang lain menderita. Beberapa peraturan hacker adalah sebagai berikut :

1. Bekerja secara etis.

Kata etis dalam konteks ini dapat didefinisikan bekerja dengan profesional dengan memperhatikan aspek moral dan prinsip yang ditegakkan . Setiap yang dikerjakan harus menjunjung tinggi kebenaran dan tidak menyembunyikan informasi yang harus ditampilkan.

2. Menghormati privasi.

Semua informasi yang diperoleh selama pengujian dari aplikasi web sampai ke password harus tetap bisa dijaga kerahasiaannya. Jangan menyebarkan informasi rahasia ke orang yang tidak mempunyai kepentingan terhadap informasi tersebut.

3. Tidak menyebabkan sistem menjadi crash

Salah satu kesalahan terbesar yang dilakukan oleh orang adalah ketika mereka mencoba meng-hack sistem komputer adalah menyebabkan sistem komputer menjadi crash. Hal ini terjadi karena mereka tidak memahami kegunaan atau teknik dari tool keamanan yang ada.
Anda dapat dengan mudah membuat kondisi DoS pada sistem ketika sedang melakukan pengujian. Menjalankan terlalu banyak pengujian dan terlalu cepat melakukannya akan menyebabkan sistem menjadi terkunci. Banyak tool keamanan yang bisa digunakan untuk mengontrol berapa banyak pengujian yang dilakukan pada sistem dalam waktu yang bersamaan.

HACKER ATTACKS ON UNDERSTANDING COMPUTER SYSTEM


Various attacks can happen to your computer system which in lalukan by hackers are as follows:
1. Non-Technical Attacks
Exploitation involving the manipulation of people or users are the biggest vulnerability in a computer or network infrastructure.Exploitation of this species classified in the exploitation of which is social engineering. Social engineering is defined as the exploitation of human beliefs in order to obtain information that is not good. While the other attacks related to information systems is physical, where hackers will break through the buildings, computer rooms and other areas that contain critical information or property. This attack is referred to as physical attacks. Physical attacks can include dumpster diving.
2. Network Infrastructure Attacks

           
Attacking network infrastructure is very easy, because many networks can be seen from anywhere in the world through the internet. Here are some examples of attacks against network infrastructure: 1. Connected to a network through a model that plugs into a computer and through a firewall. 2. Exploit the weaknesses of network transport mechanisms such as TCP / IP and NetBIOS. 3. Flooding the network with a lot of demand, create a denial of service (DoS) for legitimate requests. 4. Installing a network analysis tool in the network and take every packet that passes through and remove confidential information. 5. Go to a network via an insecure wireless Configuration is 802.11b.
3. Operating System Attacks
Attacking the operating system more in love by hackers. The operating system consists of many parts that are easy to attack because every computer has a gap that can be used and exploited. Hackers prefer to attack Windows and Linux operating systems because of the people using these operating systems and know a lot about this operating system vulnerabilities. Some examples of attacks on operating systems is as follows: 1. Exploit application-specific protocol 2. Attacking authentication system 3. Through the file system security. 4. Crack passwords and encryption mechanisms.
4. Application Attacks
           
Programs such as e-mail server software and web applications are often targeted by hackers. Some examples are as follows: 1. Applications Hypertext Transfer Protocol (HTTP) and Simple Mail Transfer Protocol (SMTP) is often attacked because most firewalls and other security mechanisms dikonfogurasikan to allow full access to the program - a program from the internet. 2. Malicious software (malware) consists of viruses, worms, Trojan horse, and spyware. Malware can create a network and systems to be down. 3. Spam (junk e-mail) to bring a bad effect on the system and place pentimpanan. Spam also carry malware. 

ALL INFORMATION Copyright © 2011 | Template created by O Pregador | Powered by Blogger