Feeds:
Pos
Komentar

Entity Relationship Model

=> Entity,

  • Definition, entity is an object that exists and is distinguishable from other objects.
  • Example :  specific person, company, event, plant.
  • An entity set ?, Entity set is a set of entities of the same type that share the same properties.Example: set of all persons, companies, trees, holidays

=> Attributes,

  • Definition, attributes is  An entity is represented by a set of attributes, that is descriptive properties possessed by all members of an entity set.
  • Example:

customer = (customer-id, customer-name,        customer-street, customer-city)
loan = (loan-number, amount)

  • domain – the set of permitted values for each attribute
  • Attribute types:
  1. Simple and composite attributes.
  2. Single-valued and multi-valued attributes.E.g. multivalued attribute: phone-numbers.
  3. Derived attributes.Can be computed from other attributes.E.g.  age, given date of birth

=> Relationship,

  • Definition, a relationship is an association among several entities.
  • Example:
HayesdepositorA-102
customer entity  relationship set  account entity
  • A relationship set is a mathematical relation among n >= 2 entities, each taken from entity sets {(e1, e2, … en) | e1  Î E1, e2 Π E2, …, en Π En} where (e1, e2, …, en) is a relationship.
  • Example:

(Hayes, A-102) Î depositor

 

Introduction Database #4

=> Database User

  • Users are differentiated by the way they expect to interact with the system.
  • Application programmers – interact with system through DML calls.
  • Sophisticated users – form requests in a database query language.
  • Specialized users – write specialized database applications that do not fit into the traditional data processing framework.
  • Naïve users – invoke one of the permanent application programs that have been written previously.

=> Database Administrator

  • Coordinates all the activities of the database system; the database administrator has a good understanding of the enterprise’s information resources and needs.
  • Database administrator’s duties include:
  1. Schema definition.
  2. Storage structure and access method definition.
  3. Schema and physical organization modification.
  4. Granting user authority to access the database.
  5. Specifying integrity constraints.
  6. Acting as liaison with users.
  7. Monitoring performance and responding to changes in requirements.

=> Transaction Management

  • A transaction is a collection of operations that performs a single logical function in a database application.
  • Transaction-management component ensures that the database remains in a consistent (correct) state despite system failures (e.g., power failures and operating system crashes) and transaction failures.
  • Concurrency-control manager controls the interaction among the concurrent transactions, to ensure the consistency of the database.

=> User Management

  • Storage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system.
  • The storage manager is responsible to the following tasks:
  1. Hinteraction with the file manager
  2. efficient storing, retrieving and updating of data

Introduction Database #3

=> Data Definition Language, specification notation for defining the database schema.

 

=> Data Manipulation Language, language for accessing and manipulating the data organized by the appropriate data model.
=> SQL, widely used non-procedural language
  • E.g. find the name of the customer with customer-id 192-83-7465
select   customer.customer-name
from     customer
where  customer.customer-id = ‘192-83-7465’
  • E.g. find the balances of all accounts held by the customer with customer-id 192-83-7465
select   account.balance
from     depositor, account
where  depositor.customer-id = ‘192-83-7465’ and
depositor.account-number = account.account-number

Introduction Database #2

=> Instance and scheme?, Similar to types and variables in programming languages

  • Scheme, the logical structure of the database
  1. e.g., the database consists of information about a set of customers and accounts and the relationship between them)
  2. Analogous to type information of a variable in a program
  3. Physical schema: database design at the physical level
  4. Logical schema: database design at the logical level
  • Instance, the actual content of the database at a particular point in time.
  1. HAnalogous to the value of a variable

=> Data model, a collection of tools for describing; data, data relationships, data semantics, data constraints. Example; Entity Relational Model, Relational Model, object-oriented model, semi-structured data models, Older models: network model and hierarchical model

  • Entity Relationship, E-R model of real world;
  1. Entities (objects),E.g. customers, accounts, bank branch
  2. Relationships between entities,E.g. Account A-101 is held by customer Johnson, Relationship set depositor associates customers with accounts
Widely used for database design, Database design in E-R model usually converted to design in the relational model (coming up next) which is used for storage and processing.

Introduction Database #1

Tomorrow for basdat’s exam,prepared for the subject where lecture had given, and this is a summary from “database system concept -silberscchatz, korthand, sudarshan-“, hope any all of you where read this blog can comment fo the correction maybe, enjoy =)

=> What is database system?, Collection of interrelated data, DBS contains information about a particular enterprise, DBMS:  DBS together program to access the DBS.

=> Example database applications:

  • Banking: all transactions
  • Airlines: reservations, schedules
  • Universities:  registration, grades
  • Sales: customers, products, purchases
  • Manufacturing: production, inventory, orders, supply chain
  • Human resources:  employee records, salaries, tax deductions

=> Purpose database system,

  • In the early days, database applications were built on top of file systems
  • Drawbacks of using file systems to store data:Data redundancy and inconsistency; Difficulty in accessing data, Data isolation — multiple files and formats, Integrity problems.
  • Drawbacks of using file systems : Atomicity of updates, Concurrent access by multiple users, Database systems offer solutions to all the above problems.
  • Physical level describes how a record (e.g., customer) is stored.
  • Logical level: describes data stored in database, and the relationships among the data.
  • View level: application programs hide details of data types.  Views can also hide information (e.g., salary) for security purposes.

=> Pengertian, Metode Gauss Seidel digunakan untuk menyelesaikan persamaan serentak. Metode ini lebih cepatdibandingkan dengan Metode Jacobi. Metode Gauss Seidel ini menggunakan persamaan sbb

  • :xin1=biaii−Σj=1i−1 aijaiixjn1− Σj=i1N aijaiix jn
  • persamaan 4.a
  • dimana :i = 1, 2,…Nn = 1, 2, …

=> Algoritma, Algoritma Gauss Seidel, sbb :

  1. Cek apakah susunan persamaan yang akan diselesaikan memenuhi syarat persamaan 4a. Jika ya,maka lanjut ke langkah kedua.
  2. Menyusun matriks koefisien, matriks variabel, dan matriks hasil.
  3. Menentukan titik variabel x awal kemudian melakukan iterasi dengan persamaan 4a hinggadidapatkan nilai variabel x yang tidak berubah atau hampir tidak berubah dari iterasi yangsebelumnya.

=> Download, karena saya gag nyatet adanya y kayak gini, http://www.mediafire.com/?su0874pizkuc98w

metode jacobi di scilab

=> Pengertian, Metode iterasi Jakobi adalah metode penyelesaian persamaan serentak melalui proses iterasi denganmenggunakan persamaan sbb

  • :x1 n1=hi/aii−Σj =1naij/aiix jn…3a
  • dimana j <> i

=>Kelemahan, dari metode ini adalah :

  1. Jika ordo persamaan cukup tinggi maka konsumsi waktu untuk eksekusi program menjadi lama.
  2. Metode ini hanya bisa dipakai jika persamaan yang akan diselesaikan memenuhi syaratpersamaan berikut∣aii∣Σj=1n∣aij∣,i=1,2,… ,Npersamaan3b dimana j <> IBerikut

=>Algoritma, Berikut algoritma Metode Jacobi

  1. Cek apakah susunan persamaan yang akan diselesaikan memenuhi syarat persamaan 3b. Jika ya,maka lanjut ke langkah kedua.
  2. Menyusun matriks koefisien, matriks variabel, dan matriks hasil.
  3. Langkah ketiga adalah menentukan titik variabel x awal kemudian melakukan iterasi denganpersamaan 3a hingga didapatkan nilai variabel x yang tidak berubah atau hampir tidak berubahdari iterasi yang sebelumnya.

=> Download, lihat penerapannya di scilab dengan mengklik link berikut, http://www.mediafire.com/?wbkyebfy9xxphwh

=> Pengantar, Metode Newton Raphson juga digunakan untuk menyelesaikan persamaan non linear f(x).

  • RumuspenyelesaianXn1=Xn− f  Xn/ f ‘ Xn … 2a
  • Sedangkan persamaan non linear dapat diselesaikan jika memenuhi syarat sbb :∣ f x1. f ”x1/  f ‘x1. f ‘x1∣ < 1 … 2b
  • dimana X1 adalah titik awal yang ditentukan sebelum melakukan iterasi.

=> Keterbatasan, dari metode ini adalah :

  1. Jika fungsi f(x) mempunyai beberapa titik penyelesaian, maka akarakarpenyelesaian tersebuttidak dapat dicari secara bersamaan.
  2. Tidak dapat mencari akar imajiner(kompleks).
  3. Tidak dapat mencari akar persamaan yang tidak memenuhi syarat persamaan 2b, meskipunsebenarnya persamaan memiliki akar persamaan.
  4. Untuk persamaan yang sangat kompleks, pencarian turunan pertama dan kedua sangatlah sulit.

=> Algoritma, dari newton raphson sebagai berikut

  1. Mencari turunan pertama dan kedua dari persamaan yang ada.
  2. Menentukan nilai X1 sebagai nilai perkiraan awal dan kemudian mengecek apakahmemenuhi persyaratan persamaan 2b.
  3. Jika memenuhi, maka iterasi dilakukan untuk mencari nilai Xn .
  4. Begitu seterusnya hingga antara Xn−1−Xn = 0 atau <= nilai e (error). Nilai error ini dapatditentukan sendiri.

=> Download, penerapan newton raphson di scilab di link berikut, http://www.mediafire.com/?5zskf5bau2e63y0

=> Pengertian, Metode Bisection digunakan untuk mencari akar persamaan non linear melalui proses iterasi denganpersamaan :

  • Xc= XaXb/2 …(1.1)
  • dimana nilai f  Xa. f  Xb0 …(1.2).

=> Kelemahan, metode ini adalah :

  1. Jika akar persamaan lebih dari satu, maka nilai tersebut hanya bisa ditemukan satu persatu/tidak bisa sekaligus.
  2. Tidak dapat mencari akar kompleks (imajiner).3. Proses iterasi tergolong lambat.

=> Alogritma, dari bisection ini :

  1. Langkah pertama, menentukan dua nilai x (Xa dan Xb) sebagai nilai awal perkiraan.
  2. Kedua nilai iniharus memenuhi syarat persamaan 1.2Langkah kedua, jika nilai awal telah didapatkan selanjutnya menentukan nilai x (misal Xc) barumenggunakan persamaan 1.1
  3. Langkah ketiga, mencari nilai f(Xc)Langkah selanjutnya, melakukan langkah 2 dan 3 hingga didapatkan f(Xc) = 0 atau mendekati 0.

=> Download, lebih lanjut penerapan di scilab bisa di ambil dari pertemuan 3, link berikut, http://www.mediafire.com/?h3ihaxm8wev54dn

Dasar Scilab

Pengenalan sudah, sekarang kita masuk ke dasar – dasar yang bisa kita lakukan dengan scilab di praktikum komnum kita, kemarin seh nyoba – nyoba buat vektor, matriks dan function di scilab, hayo gimana itu, check this out :

  1. Cara untuk membuat vektor dalam Scilab, vektor disebut juga dengan array satu dimensi, cara membuatnya yaitu di scilabnya kita ketikkan, “x=[0 ;2 ;5]”, maka akan terbentuk vektor x = [ 0 2 5 ]
  2. Cara untuk membuat matriks dalam Scilab, matriks disebut juga array dua dimensi, di scilab kita ketik perintahnya sbb :  A=[1 3 4 ;−1 2 5 ; 4−3 5], maka akan terbentuk matriks A dengan nilai
  3. Selebihnya, bisa di download dari catatan saya di link berikut, http://www.mediafire.com/?cz6lrmx897vq1c8
Rancang situs seperti ini dengan WordPress.com
Mulai