Judul materi : Sorting and Searching.
Tipe - tipe sorting :
- Ascending
- Descending
Cara - cara sorting :
- Bubble sort : Bandingin 2 nilai yang bersebelahan dilakukan berulang - ulang.
- Selection sort : Paling kecil ditaro ke depan.
- Insertion sort : pake temp, trus di swap ke index array yang lebih kecil ato besar tergantung tipe sorting.
- Quick sort / Divide and Conquer : pake pivot, trus datanya satu - satu dibandingin ke pivot lebih kecil ato besar. Abis itu bagi lagi pake pivot lagi.
- Merge sort : Di pecah sampe tinggal size of one trus compare masing - masing sampe jadi array utuh lagi.
Sesuai keadaan data, Quick bisa lebih lambat dari Merge ato sebaliknya, kalo worst case scenario, Quick jadi lebih cepat dari pada Merge.
Tuesday, December 18, 2018
5 December 2018
Judul materi : Files Processing.
Definisi file adalah a collection of record.
Definisi record adalah a collection of field.
Field adalah a block of byte.
Byte is a collection of bit.
File *fp - untuk tempat menampung file yang ingin kita buka.
r : read, buka file lalu read doang. Buat ambil data dari file.
w : write, buka file lalu write doang. Buat menuliskan sesuatu ke filenya.
a : append, buka file lalu update ato ngubah data yang udah ada sebelumnya.
Beda append sama write : kalo append, ngubah data yang lama, kalo write bikin data baru terus ditambahin ke filenya.
r+ : buka file trus read sama write.
w+ : buka file, kalo file nya udh ada bakal di delete isinya, kalo gk ada bakal create baru.
a+ : buka file buat append atau read.
rb : buka file (binary) buat di read.
wb : kyk w+ tapi buat file(binary).
Definisi file adalah a collection of record.
Definisi record adalah a collection of field.
Field adalah a block of byte.
Byte is a collection of bit.
File *fp - untuk tempat menampung file yang ingin kita buka.
r : read, buka file lalu read doang. Buat ambil data dari file.
w : write, buka file lalu write doang. Buat menuliskan sesuatu ke filenya.
a : append, buka file lalu update ato ngubah data yang udah ada sebelumnya.
Beda append sama write : kalo append, ngubah data yang lama, kalo write bikin data baru terus ditambahin ke filenya.
r+ : buka file trus read sama write.
w+ : buka file, kalo file nya udh ada bakal di delete isinya, kalo gk ada bakal create baru.
a+ : buka file buat append atau read.
rb : buka file (binary) buat di read.
wb : kyk w+ tapi buat file(binary).
Tuesday, December 4, 2018
28 Nov 2018 Cloud services
28 November 2018
Function and Recursion
Program is divided into modules.
Function is group of statements used to to a specific job.
Library function is standard function yang disediakan oleh si compiler.
User defined Function is self defined functions.
Passing:
-By value, lempar valuenya doang.
-By address/lokasi, lempar address supaya valuenya gk berubah.
Recursive : fungis yang manggil diri nya sendiri lagi.
Contoh : faktorial, fibonacci
PT.Mitra Teleinformatika Perkasa
Cloud Computing Services
Cloud adalah sebuah network yang bisa diakses dari manapun lewat network public atau private.
Cloud computing itu adalah managing. Offers online data storage.
Terpisah dari main system diurus oleh third party.
Sehingga perusahaan akan lebih bisa fokus ke bisnis.
Deploy ex. Social networking, data sharing, education, business/office application, HPC for limited duration
Service method :
IAAS
PAAS
SAAS
Deploy method : private, public, hybrid.
Draas : disaster recovery as a service
baas : backup as a service
Advantage : reduce overall cost
Universal data access
Increased data reliability
Flexible performance improvement
Easier group collaboration
Device independence
Relieve storage capacity limitation
Disadvantage : requires inet connection.
Features might be limited
Performance concerns
Data / system contingency plan
Function and Recursion
Program is divided into modules.
Function is group of statements used to to a specific job.
Library function is standard function yang disediakan oleh si compiler.
User defined Function is self defined functions.
Passing:
-By value, lempar valuenya doang.
-By address/lokasi, lempar address supaya valuenya gk berubah.
Recursive : fungis yang manggil diri nya sendiri lagi.
Contoh : faktorial, fibonacci
PT.Mitra Teleinformatika Perkasa
Cloud Computing Services
Cloud adalah sebuah network yang bisa diakses dari manapun lewat network public atau private.
Cloud computing itu adalah managing. Offers online data storage.
Terpisah dari main system diurus oleh third party.
Sehingga perusahaan akan lebih bisa fokus ke bisnis.
Deploy ex. Social networking, data sharing, education, business/office application, HPC for limited duration
Service method :
IAAS
PAAS
SAAS
Deploy method : private, public, hybrid.
Draas : disaster recovery as a service
baas : backup as a service
Advantage : reduce overall cost
Universal data access
Increased data reliability
Flexible performance improvement
Easier group collaboration
Device independence
Relieve storage capacity limitation
Disadvantage : requires inet connection.
Features might be limited
Performance concerns
Data / system contingency plan
Subscribe to:
Comments (Atom)