Sabtu, 18 Juni 2011

Combinations and Permutations

COMBINATION
The difference between permutation and combination problem lies in "the order or the position of" preparation of a group of objects. In a permutation problem of sequence or position to be very important, whereas in combination are not concerned with the order or position of the group object.
On the permutation sequence of objects XYZ; XZY; ZYX is different, but for the combination of these sequences are considered equal. Thus the combination of the method of electing the object in question without taking into consideration the sequence of the object. To calculate the number of combinations of objects can be formulated: nCx = (n!) / (x! (nx)!), Where n: number of all objects that exist, and x: the number of objects in combination.
Value of x <n and if x = n formulation into nCn = 1.


PERMUTATIONS Permutation is a compilation of existing objects into a specific sequence. Things to note in the permutation is that the objects that exist must be "indistinguishable" from each other. Permutation can be formulated: nPx = (n!) / (n-x)! ; Where n = number of all objects, and x = number of objects dipermutasikan. Values ​​of n and x each must be greater than zero. If the value of x <n is called a permutation of Part Object. If the value of x = n, then it is called permutation Whole Object, so the formula can be simplified into: nPx = n! .

The following is the sourcecode of the program combinations and permutations:

Rabu, 15 Juni 2011

Identity Matrix

On this occasion I will post the program on the following matrix identity is a little explanation from me, the notion of the identity matrix is a matrix whose diagonal elements main equal to 1, while other elements have the same with 0.
we just created the program, and the following source code:

#include <iostream.h>
#include <conio.h>

Selasa, 14 Juni 2011

Matrix Tranpose

Matrix tranpose understanding is obtained from the moving elements of the row elements become columns and vice versa, moving the elements into elements of a column in the row.
The following is the sourcecode:

#include <iostream.h>
#include <conio.h>

Senin, 13 Juni 2011

Rencana Anggaran Biaya


PENGERTIAN UMUM RENCANA ANGGARAN BIAYA 
Yang dimaksud dengan rencana Anggaran biaya suatu bangunana adalah perhitungan banyaknya biaya yang diperlukan untuk bahan dan upah, setta biaya-biaya lain yang berhubungan dengan pelaksanaan Bangunan atau proyek tersebut.
Anggaran Biaya merupakan harga dari bangunan yang dihitung dengan teliti da cermat dan memnuhi syatrat. Anggaran biaya pada bangunan yang sama akan berbeda-beda dimasing-masing daerah, disebabkan adanya perbedaan harga dan Upah tenaga Kerja
Ada 2 macam jenis RAB adalah :
1.  RAB Kasar : sebagai pedoman dalam menyusun anggaran biaya kasar digunakan harga satan tiap meter persegi luas latai.
2.  RAB Halus : Anggaran biaya bangunan atau proyek yang dihitung dengan teliti dan cermat, sesuai dengan ketentuan dan syarat-syarat penyusunan anggaran biaya. Perhitungan ini berdasarkan dan didukung oleh:
      a.Bestek :berfungsi untuk menentukan spesifikasi bahan dan syarat-syarat teknis.
      b.Gambar Bestek : berfungsi untuk menentukan besarnya masing-masing volume pekerjaan
      c.Harga satuan Pekerjaan : didapat dari harga satuan bahan dan harga upah berdasarkan perhitungan analisa   BOW.

Minggu, 12 Juni 2011

Merge Sort

          Prinsip utama yang diimplementasikan pada algoritma merge-sort seringkali disebut sebagai pecah-belah dan taklukkan. Cara kerja algoritma merge sort adalah membagi larik data yang diberikan menjadi dua bagian yang lebih kecil. Kedua larik yang baru tersebut kemudian akan diurutkan secara terpisah. Setelah kedua buah list tersusun, maka akan dibentuk larik baru sebagai hasil penggabungan dari dua buah larik sebelumnya. Menurut keefektifannya, alogaritma ini bekerja dengan tingkat keefektifan O(nlog(n)).
berikut ini adalah sourcecodenya:

#include <cstdlib>
#include <iostream>