![]() | |
| | #1 (permalink) |
| Exalted Member | You can hide this advertisement by registering. G'day all, Im revising this option topic at the moment. With all different kind of paradigms, I'm very confused. Although I have a variety of texts but still I cannot understand what they mean. All 3 paradigms namely are: Logic, functional and object-oriented. Does imperative include as well? I am so confused with their characteristics, and the use of each of them. Can someone please explain them to me? Thank heaps! |
| | |
| | #2 (permalink) |
| <insert title> HSC: N/A Gender: Undisclosed
Join Date: Dec 2003
Posts: 2,841
Last Activity:
9 May 2009, 4:54 PM ![]() ![]() ![]() ![]() ![]() ![]() | OOP- encapsulation, inheritance, classes, methods and polymorphism logic- based on facts and rules, inference engine and backward/forward chaining. functional- im not all that clear abt it, but it deals with mathematical problems or something. hmm (random suggestion) imperative is like the normal algorithms...isnt it? As it is sequential. do you have the excel sdd book or the sdd one by samD (they are useful). one by sam D is lengthy as it is a textbook, while the excel one is a revision type. Last edited by dark`secrets; 6 Oct 2004 at 10:44 PM. |
| | |
| | #3 (permalink) |
| meh. HSC: 2002 Gender: Male
Join Date: Jul 2002
Posts: 5,230
Last Activity:
16 Nov 2009, 11:30 PM ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Functional - program is made of functions and is based on recursion, values of variables do not change.
__________________ Sunny * No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced. HSC Class of 2002 2008 UNSW BSc Computer Science Honours Class 1 |
| | |
| | #4 (permalink) | |
| :o>---< HSC: 2005 Gender: Male
Join Date: Aug 2004
Posts: 3,027
Last Activity:
5 Oct 2009, 9:49 PM ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Quote:
The two categories of languages are Imperative (Procedural) or Declarative. Imperative: # Use decisions (branching) & repetition # Separate input, output, data, control and processing into distinct components # Use programs that have a definite beginning and definite termination # Are based on variables and control structures (Control structures are your sequence, decision, repetition). from Wikipedia: Whereas imperative programming gives the computer a list of instructions to execute in a particular order, declarative programming describes to the computer a set of conditions and lets the computer figure out how to satisfy them. Declarative programming includes both functional programming and logic programming. -- Hope that's cleared some stuff up. Declarative & Imperative aren't paradigms as such, they are ways of computing, through the three paradigms. ~ Med | |
| | |
| | #5 (permalink) |
| The 36th Dragon HSC: N/A Gender: Undisclosed Location: Behind a door that will never open.
Join Date: Oct 2003
Posts: 154
Last Activity:
9 Jun 2005, 8:02 PM ![]() | Maybe understanding the advantages & disadvantages of these paradigms will help u with ur understanding of its characteristics. http://www.boredofstudies.org/commun...t=27852&page=1 Hope that Helps.
__________________ B-Tech (Optoelectronics) @ Macquaire University |
| | |
| | #8 (permalink) |
| meh. HSC: 2002 Gender: Male
Join Date: Jul 2002
Posts: 5,230
Last Activity:
16 Nov 2009, 11:30 PM ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Here is a short program written using a functional language - Haskell. Code: fibonacci :: Int -> Int fibonacci x | x == 1 = 1 | x == 2 = 1 | (otherwise) = fibonacci (x-1) + fibonacci (x-2)
__________________ Sunny * No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced. HSC Class of 2002 2008 UNSW BSc Computer Science Honours Class 1 |
| | |
| | #9 (permalink) |
| Exalted Member | Thanks Sunny. I've read through the past papers and found in Question 24 (The Option question), it gives a scenario and asks which will be the most appropriate paradigms. I'm kinda understand all of the paradigms, but still not 100% able to answer questions like that. Can someone please tell me an example/charateristic/use of each of the paradigms? It will be very appreciated. |
| | |
| | #11 (permalink) |
| meh. HSC: 2002 Gender: Male
Join Date: Jul 2002
Posts: 5,230
Last Activity:
16 Nov 2009, 11:30 PM ![]() ![]() ![]() ![]() ![]() ![]() ![]() | There are a few general pointers I believe can get out most paradigm questions: Functional - problem is of a recursive nature - eg, finding fibonacci numbers: its definition is recursive Object Oriented - Suited for real world problems - When things in the problem can be represented by objects communicating with each other to solve the problem Logic - When AI is required - Expert systems - This paradigm is obvious when to use Imperative - Pretty much anything that doesn't fit into those categories - The problem can be solved with a series of sequential steps
__________________ Sunny * No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced. HSC Class of 2002 2008 UNSW BSc Computer Science Honours Class 1 |
| | |
| | #14 (permalink) |
| Advanced Member HSC: 2004 Gender: Male Location: Eastern Suburbs Position: Bored Bad Boyz Status: Studying
Join Date: Mar 2004
Posts: 406
Last Activity:
29 Jun 2009, 3:19 PM ![]() | Paradigms scare me i have nightmares about them :P
__________________ *Bad Boys, Bad Boys, What ya gonna do? What ya gonna do when they come for you?* ![]() "You wanna come down to the underground old school? Here's a shovel, can you dig it fool? --- Whoomp There it is" |
| | |
| |
| | #15 (permalink) |
| New Member Join Date: Sep 2005
Posts: 1
Last Activity:
28 Sep 2005, 1:08 PM ![]() | hey, just in case these are just some of the languages used for the 3 main paradigm. there are many more but these are usually the ones looked at cause they are free and can be taught pretty well. Logic - Prolog (great for AI, just type in all the rules in a notepad and then the comp just figures it out, also creates expert systems which is one big database and the comp decides which is most correct from the inputs) Functional - Lisp (works on lists and brackets, a whole lotta brackets, lots of specialised syntax such as nil and T. used a whole lot for math function, domain and range) Object Oriented - VB.Net, C++ (use classes and objects to create instances and works on events rather then sequential) Imperative - Pascal (uses more of a step by step version to figure out how to execute) although they don't ask for any specifics in the exams it is always handy to know some of the language as you can then picture it and since these languages are pretty common for there own paradigms it's handy to know them. see ya Last edited by tubby2877; 28 Sep 2005 at 11:33 AM. |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RFTG Paradigms Help and Questions | glitterfairy | Module B: Texts and Ways of Thinking | 41 | 22 Oct 2008 1:26 PM |
| Confused over UMAT type questions | kooltrainer | Medicine and Medical/Health Studies | 6 | 6 May 2008 12:40 PM |
| I&S, paradigms | minalata | Module B: Texts and Ways of Thinking | 4 | 20 Feb 2005 5:45 PM |
| paradigms | Janey_1986 | Module B: Texts and Ways of Thinking | 6 | 14 Aug 2004 9:00 AM |