Y = Frank in Java
Y = Frank Print QR-Code In Java Using Barcode generator for Java Control to generate, create QR image in Java applications. In other words, Frank is the grandfather of Sally (Frank is the father of Jesse, and Jesse is the father of Sally) Just from this simple example, you can see how different a Prolog program works compared to a program written in BASIC or C Instead of telling the computer how to solve a problem, declarative programming languages let you state the facts and the rules for manipulating those facts so the computer can figure out how to solve the problem Bar Code Generation In Java Using Barcode creator for Java Control to generate, create barcode image in Java applications. Artificial Intelligence Languages
Barcode Recognizer In Java Using Barcode scanner for Java Control to read, scan read, scan image in Java applications. A Prolog program can actually create additional facts (and delete old facts) while it s running, so it can appear to think That s why Prolog is commonly used in the field of artificial intelligence The whole idea behind artificial intelligence is to make computers smarter and literally think for themselves (That s because computer scientists have pretty much given up hope that people will ever get smarter or begin to think for themselves) Just as knowing two or more human languages can help you better understand how people communicate, so can knowing two or more different programming languages help you better understand how programming can work The key is to figure out two different programming languages, like C++ and Prolog Knowing two similar programming languages, like C++ and C#, doesn t show you much of a difference One of the most popular programming languages favored by the artificial intelligence community is LISP (which stands for LISt Processing) The basic idea behind LISP is that everything is a list that can be manipulated by the computer For example, a typical LISP command might look like this: Denso QR Bar Code Printer In C# Using Barcode generation for Visual Studio .NET Control to generate, create QR-Code image in Visual Studio .NET applications. (print Hello world ) Encode QR-Code In Visual Studio .NET Using Barcode creation for .NET framework Control to generate, create Denso QR Bar Code image in .NET framework applications. This LISP command is a list that displays the following on-screen: QR Code ISO/IEC18004 Maker In Visual Basic .NET Using Barcode creator for .NET framework Control to generate, create Denso QR Bar Code image in .NET applications. Hello world
Barcode Printer In Java Using Barcode generator for Java Control to generate, create bar code image in Java applications. The enclosing parentheses define the start and end of a list A different way to print Hello world on-screen would be to use this LISP command: USS Code 39 Drawer In Java Using Barcode maker for Java Control to generate, create Code39 image in Java applications. (list Hello world ) Universal Product Code Version A Creator In Java Using Barcode creator for Java Control to generate, create UPC-A image in Java applications. The preceding command would print the following: Printing EAN-13 In Java Using Barcode printer for Java Control to generate, create EAN13 image in Java applications. ( Hello world ) Generating EAN / UCC - 14 In Java Using Barcode printer for Java Control to generate, create GTIN - 128 image in Java applications. In this case, the list command tells the computer to treat Hello world as a list, so it encloses it in parentheses Now consider what happens if you insert a command (list) inside another command (list): Printing USPS POSTNET Barcode In Java Using Barcode encoder for Java Control to generate, create Delivery Point Barcode (DPBC) image in Java applications. (list (print Hello world )) EAN 13 Creator In VB.NET Using Barcode printer for Visual Studio .NET Control to generate, create GS1 - 13 image in .NET applications. This is how the preceding LISP command works: Barcode Encoder In C#.NET Using Barcode generation for .NET framework Control to generate, create bar code image in VS .NET applications. 1 The innermost command (list) runs first, which is the (print Hello
Bar Code Decoder In Java Using Barcode recognizer for Java Control to read, scan read, scan image in Java applications. world ) list This displays the following on-screen: Paint Code 128 In VB.NET Using Barcode creator for Visual Studio .NET Control to generate, create Code 128B image in Visual Studio .NET applications. Hello world
Print EAN128 In Visual C# Using Barcode printer for Visual Studio .NET Control to generate, create EAN 128 image in Visual Studio .NET applications. Scripting Languages
Reading Code-39 In .NET Using Barcode scanner for Visual Studio .NET Control to read, scan read, scan image in VS .NET applications. Book I 3
Code 3 Of 9 Creator In C#.NET Using Barcode drawer for VS .NET Control to generate, create Code 39 Extended image in Visual Studio .NET applications. 2 From the computer s point of view, the original LISP command now
Drawing Data Matrix In VB.NET Using Barcode drawer for Visual Studio .NET Control to generate, create Data Matrix 2d barcode image in .NET applications. looks like this: (list Hello world ) Types of Programming Languages
This command now displays the following on-screen: ( Hello world ) So the command
(list (print Hello world )) prints the following: Hello world ( Hello world ) In the previous example, LISP treats the (print Hello world ) list first as a command (to print Hello world on-screen) and then as data to feed into the list command to display the list ( Hello world ) on-screen With traditional programming languages, like C or BASIC, commands and data are separate where data may change but commands never change With LISP, a list can be both a command and data That makes it possible for a program to change its lists (treated either as data or as a command), essentially allowing a program to modify itself while running, which can mimic the learning and thinking process of a human being As you can see, both LISP and Prolog offer radically different ways to program a computer compared to C or BASIC Just as languages, like C and BASIC, free you from the tedium of manipulating registers and memory addresses to program a computer, so do LISP and Prolog free you from the tedium of writing explicit step-by-step instructions to program a computer Although the idea that a LISP program can modify its own commands might seem like science fiction, LISP is actually the second oldest programming language still in use today (FORTRAN is the oldest programming language still in popular use) LISP was invented in 1958, and although it s been used primarily as a research tool, people have created commercial programs using LISP
|
|
|
|
| ALL RIGHTS RESERVED. Business Refinery (c) 2006 - 2010. | Terms of Use | Privacy Policy |