Kamis, 22 Oktober 2009

Fact, Rules, Predicate, and Variable in Prolog

Hellooo .. this is our Final Project on Third Week.
Lets do the exercise on Logic Programming using Prolog e-book Page 27.

Exercise no. 1
Type the following program into a file and load it into Prolog.

/* Animals Database */
animal(mammal,tiger,carnivore,stripes).
animal(mammal,hyena,carnivore,ugly).
animal(mammal,lion,carnivore,mane).
animal(mammal,zebra,herbivore,stripes).
animal(bird,eagle,carnivore,large).
animal(bird,sparrow,scavenger,small).
animal(reptile,snake,carnivore,long).
animal(reptile,lizard,scavenger,small).



Instructions : Devise and test goals to find (a) all the mammals, (b) all the carnivores that are
mammals, (c) all the mammals with stripes, (d) whether there is a reptile that has a mane.


Answer :

Step 1 . write down the following program to notepad, and save as .pl file. For this exercise, we will save it as numberone.pl



 Step 2 . Open your Prolog, click File>Consult and find the file you’ve just saved it. After you successfully open it, Prolog will show to you a successful quote like this image above.



Step 3 . First Question : find all mammals. just type ..
 animal(mammal,X,Y,Z).
   


Step 4 . for the second question : find all the carnivores that are
mammals. type ..

animal(mammal,X,carnivore,Z). 



Rule-based Expert System

Short definition about Rule-based Expert System is an expert system based on a set of rules that a human expert would follow in diagnosing a problem.

But .. WHAT ARE RULE-based EXPERT SYSTEM completely ??
Lets learn more ..

Conventional problem-solving computer programs make use of well-structured algorithms, data structures, and crisp reasoning strategies to find solutions. For the difficult problems with which expert systems are concerned, it may be more useful to employ heuristics: strategies that often lead to the correct solution, but that also sometimes fail. Conventional rule-based expert systems, use human expert knowledge to solve real-world problems that normally would require human intelligence. Expert knowledge is often represented in the form of rules or as data within the computer.

Depending upon the problem requirement, these rules anddata can be recalled to solve problems. Rule-based expert systems have played an important role in modern intelligent systems and their applications in strategic goal setting, planning, design, scheduling, fault monitoring, diagnosis and so on. With the technological advances made in the last decade, today’s users can choose from dozens of commercial software packages having friendly graphic user interfaces (Ignizio, 1991). Conventional computer programs perform tasks using a decision-making logic containing very little knowledge other than the basic algorithm for solving that specific problem. The basic knowledge is often embedded as part of the programming code, so that as the knowledge changes, the program has to be rebuilt. Knowledge-based expert systems collect the small fragments of human knowhow into a knowledge base, which is used to reason through a problem, using the knowledge that is appropriate. An important advantage here is that within the domain of the knowledge base, a different problem can be solved using the same program without reprogramming efforts.

Moreover, expert systems could explain the reasoning process and handle levels of confidence and uncertainty,
which conventional algorithms do not handle (Giarratano and Riley, 1989). Some of the important advantages of expert systems are as follows:
• ability to capture and preserve irreplaceable human experience;
• ability to develop a system more consistent than human experts;
• minimize human expertise needed at a number of locations at the same time (especially in a hostile  environment that is dangerous to human health);
• solutions can be developed faster than human experts.

The basic components of an expert system are illustrated in Figure 1. The knowledge base stores all relevant information, data, rules, cases, and relationships used by the expert system. A knowledge base can combine the knowledge of multiple human experts. A rule is a conditional statement that links given conditions to actions or outcomes. A frame is another approach used to capture and store knowledge in a knowledge base. It relates an object or item to various facts or values. A frame-based representation is ideally suited for object-oriented programming techniques. Expert systems making use of frames to store knowledge are also called frame-based expert systems. The purpose of the inference engine is to seek information and relationships from the knowledge base and to provide answers, predictions, and suggestions in the way a human expert would. The inference engine must find the right facts, interpretations, and rules and assemble them correctly. Two types of inference methods are commonly used – Backward chaining is the process of starting with conclusions and working backward to the supporting facts.

Forward chaining starts with the facts and works forward to the conclusions.


 Figure 1. Architecture of a simple expert system.

The explanation facility allows a user to understand how the expert system arrived at certain results. The overall purpose of the knowledge acquisition facility is to provide a convenient and efficient means for capturing and storing all components of the knowledge base. Very often specialized user interface software is used for designing, updating, and using expert systems. The purpose of the user interface is to ease use of the expert system for developers, users, and administrators.

what is EXPERT SYSTEM ?

these are some literature about EXPERT SYSTEM taken from some source at cyber ..

source from wikipidea.org 
 "An expert system is software that attempts to provide an answer to a problem, or clarify uncertainties where normally one or more human experts would need to be consulted. Expert systems are most common in a specific problem domain, and is a traditional application and/or subfield of artificial intelligence. A wide variety of methods can be used to simulate the performance of the expert however common to most or all are 1) the creation of a so-called "knowledgebase" which uses some knowledge representation formalism to capture the Subject Matter Expert's (SME) knowledge and 2) a process of gathering that knowledge from the SME and codifying it according to the formalism, which is called knowledge engineering. Expert systems may or may not have learning components but a third common element is that once the system is developed it is proven by being placed in the same real world problem solving situation as the human SME, typically as an aid to human workers or a supplement to some information system.

As a premiere application of computing and artificial intelligence, the topic of expert systems has many points of contact with general systems theory, operations research, business process reengineering and various topics in applied mathematics and management science."


source from searchcio-midmarket.techtarget.com
"An expert system is a computer program that simulates the judgement and behavior of a human or an organization that has expert knowledge and experience in a particular field. Typically, such a system contains a knowledge base containing accumulated experience and a set of rules for applying the knowledge base to each particular situation that is described to the program. Sophisticated expert systems can be enhanced with additions to the knowledge base or to the set of rules.

Among the best-known expert systems have been those that play chess and that assist in medical diagnosis."

source from www.webopedia.com
"A computer application that performs a task that would otherwise be performed by a human expert. For example, there are expert systems that can diagnose human illnesses, make financial forecasts, and schedule routes for delivery vehicles. Some expert systems are designed to take the place of human experts, while others are designed to aid them.

Expert systems are part of a general category of computer applications known as artificial intelligence . To design an expert system, one needs a knowledge engineer, an individual who studies how human experts make decisions and translates the rules into terms that a computer can understand."

Kamis, 15 Oktober 2009

it"s aLL abOut sHa



huaa.. akhirnya saia jugga ikUtan mngisi biodata lengkap saia.. Wah,, perkenalkan sebelumnya, Saya Indah Mayang Sari, panggil saja saya Sari. Lahir di Kendari, ibukota provinsi di Sulawesi Tenggara 18tahun yang lalu.. Tidak terasa memang, sekarang saya sudah menjadi salah satu mahasiswi di Institut Teknologi Sepuluh Nopember Surabaya, tepatnya di jurusan Sistem Informasi tahun pertama alias maba [hhehe].








Hmm, pertama kali mendengar tugas dari dosen Matematika Diskrit saya, yth. Cakson untuk membuat sebuah blog grup mengenai mata kuliah kami, saya langsung 'excited' banget. Ini untuk kedua kalinya saya membuat blog (silahkan kunjungi blog saya di shacuap-cuap.blogspot.com) hhe^^.


Saya adalah anak kedua dari dua bersaudara. Saat ini kakak saya sedang melanjutkan pendidikannya di Universitas Airlangga Surabaya jurusan kedokteran hewan. Saya,,sama seperti perempuan remaja lainnya, suka membaca, travelling, menyanyi, bermain musik seperti piano atau keyboard, dan yang pasti online. =)


Hal pertama yang saya pikirkan saat pertama kali mendapat mata kuliah ini adalah "penasaran". Seperti apakah pelajaran ini, kalau dilihat dari namanya saja sudah menarik, [hhehe], saya berpikir pasti sangat 'excited' mendapat pelajaran seperti ini. Dan dugaan saya memang tidak salah, bahkan lebih dari yang saya duga sebelumnya. Pertama, dosen kami sangat 'friendly', saya selalu ingat kata-kataanya disetiap tatap muka "don't worry to make mistake, just larning the process" ^^ [unforgettable]. Kedua, mata kuliah kami ini full english [oh God =D]. Dan yang ketiga, untungnya makul ini berisi tentang logika matematika,jadi sedikit-sedikit saya pahamlah.. [hhe]


Pesan dan kesan saya yang terakhir, semoga dengan adanya blog ini, dapat membantu pembaca sekalian dalam memahami Matematika Diskrit. Tenang saja, ini bukanlah mata kuliah yang mengerikan atau super rumit,     ikutilah saja proses dari pembelajaran disini, dan kalian semua akan menyadari, betapa menyenangkannya matematika itu^^. Semangat(!)*

Selasa, 13 Oktober 2009

about Riza


Nama : Riza Hanum Listya
Panggilan : Riza
TTL : Surabaya, 18 Desember 1990
Asal : Surabaya
Hobi : baca, jahit/merajut, dengerin musik, online
Status : mahasiswa Sistem Informasi-FTIF, ITS
Riwayat pendidikan :
  • TK : TK Siwi Handayani
  • SD : SDN Simomulyo IV-101
  • SMP : SMP Negeri 3 Surabaya
  • SMA : SMA Negeri 6 Surabaya
  • Perguruan Tinggi : ITS
Pengalaman :
  • OSIS 2006-2007
  • Koord. Publikasi, Dekorasi dan Dokumentasi CAFE'06
  • Organisasi BARA (Barisan Bendera), sampai sekarang
  • Kepengurusan BARA 2007-2008, Sekbid Kesekretariatan
  • Koord.perijinan dan akomodasi Latihan Gabungan '07
  • Koord.perijinan dan akomodasi Diklat Junior 2007
  • Koor.Konsumsi MOS 2007
  • Sekertaris KIBAR 2007
  • Ketua Pelaksana Diklat Senior 2008
  • Juara III PBB se-Jawa Timur
Cita - cita : menjadi pengusaha sukses
Motto : manfaatkan kesempatan yang ada dengan sebaik - baiknya dan lakukan yang terbaik untuk hidup.

How to use Prolog language

In this section, we want to share with you how to operate and manage the function of Prolog language.
First of all, you must install the Prolog program. You can got it in our e-learning ITS in www.websi.its-sby.edu/elearning as the guest. Or you can download it by google search typing "Download Prolog".
After all, you can start using this language. For example, following this steps:
1. Make some variable and the member of those variable in notepad.
2.  Save as that variable, rename the name of the file by adding ".pl" in the end of the name.
3. Close the notepad and open the Prolog program.
4.Choose "File" and then click "Consult"
5. Then. start to fill in the dialogue box by writing all variable.
NB: - make sure you always state the "." or "dot" in the end of those sentences
       - if you wanna know all the possible variable, use the ";" punctuation.

for example:
1. Put in the variable
- bunga(mawar).
- bunga(melati).
- buah(semangka).
- buah(mangga).
2. Save as by : "Latihan.pl"
3. Close notepad, open the Prolog program
4. Choose "file" and "consult"
5. Write "bunga(X), buah(Y).
6. to continue all possibility click ";" punctuation.
it's so easy right??. ^^

Widya Putri Kandora




Nama : Widya Putri Kandora
Panggilan : Piwied
TTL : Bandung / 25 Juni 1991
Cita-Cita : Dokter Hewan (g' bakal bisa)
                 Wirausaha

Riwayat Sekolah :
TK : TK Pertiwi Makassar
     TK Hikmat II Bandung
SD : SDN Soka 2 Bandung
     SD Swasta Medan
     SD Swasta Banjarmasin
     SDN Percobaan Surabaya
SMP :SMPN 32 Surabaya
SMA :SMA Swasta Bandung
     SMAN 22 Surabaya

Pengalaman berorganisasi :
SMP : - MPK
           - OSIS Ketua Sekbid 7
           - Ketua PASTABAYA (Paskibra 32 Surabaya)
SMA : - OSIS Ketua sekbid 2
           - OSIS Ketua 1
           - Ketua Umum PASDDRA (Paskibra 22 Surabaya)
           - Organisasi PASDDRA , until now
           - Bendahara Umum Mading
           - Anggota KIR (Karya Ilmiah Remaja)
           - Sekretaris umum IKA (Ikatan Alumni) PASTABAYA
           - Kameramen BroadCasting SMAN 22 Surabaya

Beberapa hal yang ingin saya capai...
1. Menjadi Wirausaha (walaupun  kecil-kecilan)

hello. my name is ditaa.


heihooo ....
saatnyaa perkenalan para authors darii blog inii ..
salah satuunyaa adalah saya !!! DITA KURNIAWATY.





sayaa terlahir di kota JEMBER padaa tanggal 01 April tahunn *tiiit (disembunyikan karena privacy) hehhe.
hemm .. terlahiir sebagaai bayi mungil nan imuut (lihaat fotoo diataas) hingga tumbuuh besaar menjadii gadiis cantik sepertii sekaarang inii (lihaad foto bawaahh). :)









biasaaa dipanggil DITA di manaapunn. tidak adaa panggilan atauu julukan khusuus. okey !! just call me with DITA !!
menghabiiskan 15 tahuun hidup di kota kelahiran JEMBER. pendidikan dasaar dan menengah pertama sayaa habiskan di kotaa tercinta inii. namuun setelah beranjak dewasa, saya memutuskan untuuk melanjuutkan sekolah menengah atas saya di kotaa lain atau istilah laiinnyaa saya merantau ke kotaa orang. humm, keputusan yang berat awalnyaa saat saya beranii mengambil keputusan bersekolah di SMK TELKOM SANDHY PUTRA MALANG. tapi, setelah sayaa menjalani kehiduupan baruu tersebuut, banyak hal baruu yang saya dapatkan. dan hal ituu sangat bermaanfaat bagii hidup sayaa.
duluu saya sangat manja, makluumlah anak paliing bunciit. anak cewe satu satunya, sangat wajar jikaa saya memiliki karakter manja. tapii berkat keputusan merantau, saya dapat belajar bagaimana cara menghargai hiduup. bagaimana caraa untuk lebiih berpikir dewasaa, bagaimanaa belajar untuk tidak bergantuung padaa orang tuaa, bagaimanaa caraa untuuk menjalankan roda kehidupan dengan tangan, otak, dan usaha sendiri. dan alhamdulillah, sedikit demi sedikit pelajaaran hidup ituu mengubah mind set sayaa :)
huaaaaahh .. ngomong apaa sih saya inii .. >,< hahhaha. tapii itu memang sekelumiit kisah yang dapat saya share kepada kalian semua yang memmbacaa blog inii.
ohyaa, sebenarnyaa tidak pernah sayaa menyangkaa saya bisa kuliah di ITS inii. sayaa pikiir takdir sayaa setelah masuuk ke SMK adalahh bekerjaa. dan saya pun telah mempersiapkan diri untuk menghadapii dunia kerjaa. sayaa sudah mengirimkan lamaran ke beberapa perusahaan yang mencari seorang programmer ataupun it staff. sayaa sudah mempersiapkan mentaal untuk menjadi seorang wanita karir mudaa. tapii memang mungkin sudah digariskan bahwa saya belum cukuup umur untuk bekerjaa. ahahaha. sayaa diterimaa di ITS tercintaa ini melalui jalur snmptn dan mengharuskann saya untuuk mengubah keputusan hiduup sayaa. saya haruus belajaar lagii dan belajar lebiih keras lagi untuuk mencapai tujuan DITA KURNIAWATY, S. KOM. amiiinnnnn ... :)
okeee .. apaa lagi yaa yang bisaa saya ceritakann tentaang dirii saya inii ?? hemm .. saya ini adalah tipe orang berhati lembuut. inii kata orang orang terdekat sayaa :) yaa memang sayaa bukan tipe wanita yang bisa dikerasii. tapii sayaa bukan cewe lemah kogg. saya cewe kuat !!! :)
hal yang paliing saya sukaa adalah tertawaa. saya jugaa suka membuat orang tertawaa yah meskii ituu hal jayus yang keluuar darii mulut sayaa :P. sayaa juga suka jalan jalan. inii penting untuk menghilangkan stress di otak sayaa karena dunia perkuliahaan iniii .. jadii, bolehlah jikaa adaa yang ngajak sayaa jalan jalan. hayuuuuu ...
hemmm. segituu dulu aja dehh. laiin kali lagii saya berceritaa pada kalian semuaa. keep on my way @ blog .. buaat kalian yang pengen lebihh tauu sayaa kunjungii my own blog klik ditaabicara.blogspot.com see yaaaaaa :))

Kamis, 01 Oktober 2009

Tentang Nama

Tentang nama MATHEMATIC ON CYBER.
Mengapa kami memilih nama tersebut ?
Cakson menyarankan kami untuk membuat blog dengan nama yang unique. Hemm, kami cukup lama memikirkan, kira kira apa ya nama yang cocok untuk blog kami ini ..
Sekiaan lama berpikir, tak ada ide apapun yang terlintas. Kemudian si Dita tiba tiba memberikan ide untuk memberi nama blog ini MATHEMATIC ON CYBER. haha. Karena berada di dunia maya, dunia cyber, ituu saja alasan yang dikemukakan si Dita. Yahh .. daripada lama laama berpikir tentang nama, akhirnyaa nama itulah yang di pilih. Jika di lain hari mendapat inspirasi baru, bolehlah kita ubah lagi dengan nama yang lebih baik dan lebih unique tentunya. hehehe :)

PERTAMAX!!!

Helloooo semuaaaa :)
wahh waahh. NEW BLOG!!! selamat datang yaa di blog kami yang sederhana ini.
Sekilas ceritaa tentang sejarah blog ini, awalnyaa sihh karna tugaas yang diberikan oleh CAKSON, dosen mata kuliah matematika diskrit yang sangat kami cintai. Beliau memberi mandat untuk membuat sebuah blog khusus tentang matematika diskrit. inii memang tugas. Tapii .. marilah kita buat tugas ini sebagaii ajang sharing bersama mengenai matematika diskrit. Bagii semua yang ingin berdiskusi, monggo bisaa join disinii. :) Segala hal tentang diskrit dapat kita diskusikan disini.
Harapan kamii, semogaa kita dapat berbagi ilmu dan menambah pengetahuan kita tentang matematika diskrit.
SELAMAT BERGABUNG DI MATEMATHICS ON CYBER :)