Inleiding Tot GNU/Linux

Total Page:16

File Type:pdf, Size:1020Kb

Inleiding Tot GNU/Linux Inleiding tot GNU/Linux Kris Luyten [email protected] academiejaar 2002 - 2003 inleiding tot GNU/Linux Kris Luyten academiejaar 2002-2003 Limburgs Universitair Centrum Expertisecentrum Digitale Media 1 Copyright (c) 2002 Kris Luyten Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being ‘‘Auteurs en Bijdragen’’, with the Front-Cover Texts being ‘‘Inleiding tot GNU/Linux’’. A copy of the license is included in the section entitled "GNU Free Documentation License". De volledige versie van deze cursus is beschikbaar op http://lumumba.luc.ac.be/ kris/courses/gnu-linux. Inhoudsopgave Inhoudsopgave 2 Lijst van Figuren 6 Lijst van Tabellen 7 Lijst van Code Listings 8 1 Inleiding 10 2 Eerste kennismaking 12 2.1 Inloggen ........................................ 12 2.2 Gebruikersinformatie veranderen .......................... 13 2.2.1 Paswoord ................................... 13 2.2.2 Finger ..................................... 13 2.3 Informatie over bevelen ............................... 13 3 Directories en bestanden 15 3.1 Directories ....................................... 15 3.2 De directory ordening onder Unix .......................... 15 3.3 Veranderen van directory .............................. 15 3.4 Directory aanmaken ................................. 17 3.5 Directory-gegevens bekijken ............................. 18 3.6 Randapparaten als bestanden ............................ 18 3.6.1 Hoe randapparaten voorgesteld worden .................. 18 3.6.2 Het mount bevel ............................... 19 3.6.3 Het /etc/fstab bestand ............................ 20 3.7 Pipes .......................................... 21 4 Enkele simpele operaties 22 4.1 Cre¨eren van bestanden ................................ 22 4.2 Bekijken van bestanden ............................... 22 4.3 Copy, Move en Link ................................. 23 4.4 Directories en bestanden verwijderen ........................ 24 4.5 Rechten op bestanden en directories ........................ 24 4.6 Archiveren van bestanden .............................. 25 4.7 Coderen van bestanden ............................... 26 5 X Window System 27 5.1 Algemene opbouw .................................. 27 5.2 Window managers .................................. 27 5.3 Cli¨ent applicaties en widget libraries ........................ 28 2 INHOUDSOPGAVE 3 5.4 Desktop environments ................................ 28 6 Reguliere Expressies 30 6.1 Wat zijn reguliere expressies? ............................ 30 6.2 grep en egrep ..................................... 30 6.3 De mogelijke reguliere expressies met grep ..................... 31 6.4 Enkele grep opties .................................. 33 6.5 Extended reguliere expressies met egrep ...................... 33 6.6 Overzicht van de metakarakters ........................... 34 6.7 e-mailadressen ontleden en zoeken ......................... 34 7 Editors 37 7.1 Inleiding ........................................ 37 7.2 Vi/Vim ........................................ 37 7.2.1 Verschillende modes ............................. 37 7.2.2 Enkele standaard bevelen .......................... 38 7.2.3 Zoeken en vervangen in Vim ........................ 38 7.3 Emacs ......................................... 40 7.3.1 Toetsencombinaties .............................. 40 8 Shells en shell scripting 41 8.1 Shell .......................................... 41 8.2 Aliases ......................................... 41 8.3 Programmeren in de Shell .............................. 42 8.4 Variabelen ....................................... 42 8.5 Speciale karakters .................................. 44 8.6 Vergelijken van expressies .............................. 44 8.7 Conditionele expressies ................................ 44 8.8 Iteraties ........................................ 47 8.8.1 for ....................................... 47 8.8.2 while ...................................... 48 8.8.3 until ...................................... 48 8.9 Functies ........................................ 49 8.10 Scripts onderbreken ................................. 49 8.11 eval .......................................... 49 8.12 Opgave ........................................ 50 9 Gnu Awk 52 9.1 Principes van AWK ................................. 52 9.2 Output ........................................ 54 9.3 Input .......................................... 54 9.4 Variabelen ....................................... 56 9.5 Reguliere expressies ................................. 56 9.6 Conditionele expressie ................................ 58 9.7 Iteraties ........................................ 59 9.8 Functies ........................................ 60 9.9 Voorbeeld ....................................... 60 INHOUDSOPGAVE 4 10 Programmeren onder Linux 62 10.1 Beschikbare middelen ................................ 62 10.2 De GNU C Compiler ................................. 62 10.3 Bibliotheken ...................................... 63 10.3.1 Statische bibliotheken ............................ 63 10.3.2 Gedeelde bibliotheken ............................ 64 10.3.3 Dynamisch geladen bibliotheken ...................... 65 10.3.4 Relevante utilities .............................. 66 10.4 Versiebeheer ...................................... 66 10.4.1 Basisbewerkingen ............................... 67 10.4.2 Trefwoordvervanging ............................. 67 10.4.3 Revisienummering .............................. 68 10.4.4 Toestanden opgeven ............................. 68 11 Processen en Threads 70 11.1 Definitie processen .................................. 70 11.2 Het oerproces ..................................... 71 11.3 ps, de proces-administratie ............................. 72 11.4 Systeem-processen en daemons ........................... 74 11.5 Processen programmeren ............................... 74 11.5.1 Proces creatie: system, exec en fork ................... 74 11.6 IPC: inter-proces communicatie ........................... 78 11.7 Threads ........................................ 79 11.7.1 Inleiding en definitie ............................. 79 11.7.2 POSIX threads ................................ 79 11.7.3 Joining threads ................................ 82 11.7.4 Semaforen en Mutexen ............................ 83 12 De Linux kernel 87 12.1 Inleiding ........................................ 87 12.2 Een Linux kernel compileren en installeren ..................... 87 12.2.1 De kernel broncode bekomen ........................ 87 12.2.2 De kernel patchen .............................. 88 12.2.3 De kernel configureren ............................ 88 12.2.4 De kernel en bijbehorende modules compileren .............. 89 12.2.5 De nieuwe kernel installeren ......................... 89 12.3 CPU allocatie in de Linux kernel .......................... 89 12.3.1 Inleiding .................................... 89 12.3.2 Enkele evoluties in de Linux kernel scheduler ............... 89 12.4 Memory management in de Linux kernel ...................... 90 13 Een device driver in Linux 91 13.1 Randapparaten .................................... 91 13.2 Programmeren voor de kernel ............................ 92 13.3 Een eerste kernel module .............................. 93 13.3.1 Hello world .................................. 93 13.3.2 Uitgebreider voorbeeld in het proc filesystem ............... 95 13.4 Devices als files .................................... 99 13.4.1 De API .................................... 99 13.4.2 Gebruikte entries ............................... 100 13.4.3 Module gebruik beschermen ......................... 100 13.4.4 I/O control: ioctl ............................... 101 INHOUDSOPGAVE 5 13.5 Een device driver voor de keyboard LEDs ..................... 101 13.5.1 De opdracht .................................. 101 13.5.2 Verduidelijking ................................ 101 13.5.3 De code .................................... 103 13.5.4 Praktisch gebruik van de device driver ................... 109 13.6 Verdere informatie .................................. 110 14 Hoe software installeren 111 14.1 Binaire software distributie ............................. 111 14.1.1 Red Hat Package Manager ......................... 112 14.1.2 De apt-tools .................................. 112 14.2 Broncode pakket installeren ............................ 114 15 Linux op het web 116 15.1 Distributies ...................................... 116 15.2 Kantoor-applicaties .................................. 116 15.3 Software ontwikkeling ................................ 117 15.4 Meer informatie .................................... 117 A Pointers naar functies 118 B Voorbeeld van een Makefile 120 C Oplossingen oefeningen 123 D GNU Free Documentation License 125 A-1 Applicability and Definitions ............................ 125 A-2 Verbatim Copying .................................. 126 A-3 Copying in Quantity ................................. 126 A-4 Modifications ..................................... 127 A-5 Combining Documents ................................ 128 A-6 Collections of Documents .............................. 129 A-7 Aggregation With Independent Works ....................... 129 A-8 Translation ...................................... 129 A-9 Termination ...................................... 129 A-10 Future Revisions of This License .......................... 129 Bibliografie
Recommended publications
  • Utgåvenoteringar För Fedora 11
    Fedora 11 Utgåvenoteringar Utgåvenoteringar för Fedora 11 Dale Bewley Paul Frields Chitlesh Goorah Kevin Kofler Rüdiger Landmann Ryan Lerch John McDonough Dominik Mierzejewski David Nalley Zachary Oglesby Jens Petersen Rahul Sundaram Miloslav Trmac Karsten Wade Copyright © 2009 Red Hat, Inc. and others. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. 1 Utgåvenoteringar For guidelines on the permitted uses of the Fedora trademarks, refer to https:// fedoraproject.org/wiki/Legal:Trademark_guidelines. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Java® is a registered trademark of Oracle and/or its affiliates. XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
    [Show full text]
  • Linux Einführungskurs
    Linux Einführungskurs Burkhard Obergöker Oktober 2011 Linux-Einführungskurs Inhalt 1 BEVOR ES LOSGEHT .....................................................................................4 2 HISTORIE..........................................................................................................5 3 AUFBAU DES UNIX-( UND LINUX-) SYSTEMS..............................................6 4 BENUTZERVERWALTUNG.............................................................................8 4.1 Benutzer..................................................................................................................................................8 4.2 Der Superuser (root)..............................................................................................................................8 4.3 Gruppen..................................................................................................................................................8 5 DATEISYSTEME.............................................................................................10 5.1 Die Struktur des Dateisystems...........................................................................................................10 5.2 Dateitypen.............................................................................................................................................11 5.3 Technischer Aufbau eines Dateisystems............................................................................................11 5.4 Rechtevergabe......................................................................................................................................13
    [Show full text]
  • Everyone and His Brother Is Speaking About Linux (Ie Ne
    Everyone and his brother is speaking about Linux (i.e. ne ho davvero bisogno nella mia azienda?) [Logo Linux Guide for Managers] di Marco Iannacone - [email protected] Versione 1.0f Introduzione Nell'attuale contesto informatico sono poche le persone che non hanno ancora sentito parlare di Linux. È la parola chiave del momento: non passa giorno in cui una grande azienda (anche del calibro di IBM, COMPAQ, SGI, HP, ecc.) non rilasci una dichiarazione con la quale annunci il supporto di questa piattaforma o l'inizio del porting di un prodotto su questo Sistema Operativo (OS). Linux promette bassi costi, robustezza, potabilità su molteplici piattaforme hardware, disponibilità di sorgenti, supporto gratuito, ecc. Eppure Linux non identifica univocamente una sola azienda: Caldera, Debian, Mandrake, MkLinux, Prosa, Penguin Computing, Red Hat, Slackware, Stampede, Suse, TurboLinux, Trinux, VA Linux Systems e Yellow Dog sono solo un piccolo campione delle aziende che ne vendono una distribuzione, senza parlare di quelle che producono applicazioni per Linux o che ruotano comunque intorno al mondo Opensource. La disponibilità dei codici sorgenti rende molto semplice le modifiche a questo sistema che da alcuni viene catalogato come freeware, ma che in realtà sarebbe meglio definire opensources. Solo un anno e mezzo fa, tuttavia, se aveste chiesto all'lT manager di una grande azienda la sua opinione sul free software, vi avrebbe risposto che la sua azienda non lo usa. Avrebbe probabilmente aggiunto che non vi è supporto, che non è sufficientemente robusto e non raggiunge la qualità dei prodotti commerciali. Improvvisamente però nel 1998 questa percezione è cambiata (http://www.lwn.net/1999/features/1998timeline/) come mai? Esistono siti sulla Rete dove è possibile scaricare una versione completa di Linux (non una demo, bensì il prodotto completo) gratuitamente..
    [Show full text]
  • Translingual Obfuscation
    Translingual Obfuscation Pei Wang, Shuai Wang, Jiang Ming, Yufei Jiang, and Dinghao Wu College of Information Sciences and Technology The Pennsylvania State University fpxw172, szw175, jum310, yzj107, [email protected] Abstract—Program obfuscation is an important software pro- Currently the state-of-the-art obfuscation technique is to tection technique that prevents attackers from revealing the incorporate with process-level virtualization. For example, programming logic and design of the software. We introduce obfuscators such as VMProtect [10] and Code Virtualizer [4] translingual obfuscation, a new software obfuscation scheme replace the original binary code with new bytecode, and a which makes programs obscure by “misusing” the unique custom interpreter is attached to interpret and execute the features of certain programming languages. Translingual ob- bytecode. The result is that the original binary code does fuscation translates part of a program from its original lan- not exist anymore, leaving only the bytecode and interpreter, guage to another language which has a different program- making it difficult to directly reverse engineer [39]. How- ming paradigm and execution model, thus increasing program ever, recent work has shown that the decode-and-dispatch complexity and impeding reverse engineering. In this paper, execution pattern of virtualization-based obfuscation can we investigate the feasibility and effectiveness of translingual be a severe vulnerability leading to effective deobfusca- obfuscation with Prolog, a logic programming language. We tion [24], [66], implying that we are in need of obfuscation implement translingual obfuscation in a tool called BABEL, techniques based on new schemes. which can selectively translate C functions into Prolog pred- We propose a novel and practical obfuscation method icates.
    [Show full text]
  • Distributed Multi-Threading in GNU Prolog Nuno Eduardo Quaresma Morgadinho
    §' Departamento de hrformática Distributed Multi-Threading in GNU Prolog Nuno Eduardo Quaresma Morgadinho <[email protected]> Supervisor: Salvador Abreu (Ur,iversidade de Évora DI) This thesis does not include aVpreciation nor suggestions madeby the iury. Esta dissertaçã.o não inclui as críticas e sugestões feitas pelo iúri, Évora 2007 § Departamento de Lrformática Distributed Multi-Threading in GNU Prolog Nuno Eduardo Quaresma Morgadinho <[email protected]> ..--# Jü3 3?Y Supervisor: Salvador Abreu (Universidade de Évora, DI) This thesis does not include appreciation nor suggestions madeby tlrc jury. Esta dissertação não inclui as críticas e sugestões feitas pelo júri. Évora 2007 Abstract Although parallel computing has been widely researdred, the process of bringrng concurrency and parallel programming to the mainstream has just be- gun. Combining a distributed multi-threading environment like PM2 with Pro- log, opens the way to exploit concurrency and parallel computing using logic programming. Tlo achieve suú a pu{pose, we developed PM2-Prolog, a Prolog interface to the PM2 system. It allows multithreaded Prolog applications to run in multiple GNU Prolog engines in a distributed environment, thus taking advan- tage of the resources available on a computer network. This is especially useful for computationally intensive problems, where performance is an important fac- tor. The system API offers thread management primitives, as well as explicit communication between threads. Preliminary test results show an almost linear speedup, when compared to a sequential version. Keywords: Distributed, Multi-Threading, Prolog, Logic Programming, Concurrency, Parallel, High-PerformÉulce Computing 1 Resumo Multi-Threading Distribuído no GNU Prolog Embora a computação paralela já tenha sido alvo de inúmeros estudos, o processo de a tomar acessível às massas ainda mal começou.
    [Show full text]
  • Improving the Compilation of Prolog to C Using Type and Determinism Information: Preliminary Results*
    Improving the Compilation of Prolog to C Using Type and Determinism Information: Preliminary Results* J. Morales1, M. Carro1' M. Hermenegildo* * [email protected] [email protected] [email protected] Abstract We describe the current status of and provide preliminary performance results for a compiler of Prolog to C. The compiler is novel in that it is designed to accept different kinds of high-level information (typically ob- tained via an analysis of the initial Prolog program and expressed in a standardized language of assertions) and use this information to optimize the resulting C code, which is then further processed by an off-the-shelf C compiler. The basic translation process used essentially mimics an unfolding of a C-coded bytecode emú- lator with respect to the particular bytecode corresponding to the Prolog program. Optimizations are then applied to this unfolded program. This is facilitated by a more flexible design of the bytecode instructions and their lower-level components. This approach allows reusing a sizable amount of the machinery of the bytecode emulator: ancillary pieces of C code, data definitions, memory management routines and áreas, etc., as well as mixing bytecode emulated code with natively compiled code in a relatively straightforward way We report on the performance of programs compiled by the current versión of the system, both with and without analysis information. 1 Introduction Several techniques for implementing Prolog have been devised since the original interpreter developed by Colmerauer and Roussel [5], many of them aimed at achieving more speed. An excellent survey of a sig- nifícant part of this work can be found in [26].
    [Show full text]
  • Bousi-Prolog Ver
    UNIVERSIDAD DE CASTILLA-LA MANCHA ESCUELA SUPERIOR DE INFORMÁTICA Dpto. de Tecnologías y Sistemas de Información Bousi∼Prolog ver. 2.0: Implementation, User Manual and Applications Autors: Pascual Julián-Iranzo and Juan Gallardo-Casero Other contributors: Fernando Sáenz-Pérez (U. Complutense de Madrid) Bousi∼Prolog ver. 2.0: Implementation, User Manual and Applications © Pascual Julián-Iranzo & Juan Gallardo-Casero, 2008-2017. Pascual Julián-Iranzo, Juan Gallardo- Casero & Fernando Sáenz-Pérez, 2017-2019. Bousi∼Prolog is licensed for research and educational purposes only and it’s distributed with NO WARRANTY OF ANY KIND. You are freely allowed to use, copy and distribute Bousi Prolog provided that you make no modifications to any of its files and give credit to its original authors. This documentation was written and formatted with LATEX. All the figures and diagrams that appear in it were designed with Gimp, Inkscape or ArgoUML. The shield of the cover is work of D. Villa, I. Díez, F. Moya, Xavigivax and G. Paula and is distributed under the Creative Commons Attribution 3.0 license. ii ABSTRACT Logic Programming is a programming paradigm based on first order logic that, in recent decades, has been used in fields such as knowledge representation, artificial intelligence or deductive databases. However, Logic Programming presents an important limitation when dealing with real-world problems where precise information is not available, since it does not have the tools to explicitly handle uncertainty and vagueness. One of the related frameworks to this paradigm is Fuzzy Logic Programming, which integrates concepts coming from Fuzzy Logic into Logic Programming to solve the disad- vantages of traditional logic languages when dealing with uncertainty and ambiguity.
    [Show full text]
  • IN112 Mathematical Logic Lab Session on Prolog
    Institut Supérieur de l’Aéronautique et de l’Espace IN112 Mathematical Logic Lab session on Prolog Christophe Garion DMIA – ISAE Christophe Garion IN112 IN112 Mathematical Logic 1/ 31 License CC BY-NC-SA 3.0 This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported license (CC BY-NC-SA 3.0) You are free to Share (copy, distribute and transmite) and to Remix (adapt) this work under the following conditions: Attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). Noncommercial – You may not use this work for commercial purposes. Share Alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one. See http://creativecommons.org/licenses/by-nc-sa/3.0/. Christophe Garion IN112 IN112 Mathematical Logic 2/ 31 Outline 1 Prolog: getting started! 2 Interpreting and querying 3 Unification and assignement 4 Lists 5 Negation by failure 6 Misc. Christophe Garion IN112 IN112 Mathematical Logic 3/ 31 Outline 1 Prolog: getting started! 2 Interpreting and querying 3 Unification and assignement 4 Lists 5 Negation by failure 6 Misc. Christophe Garion IN112 IN112 Mathematical Logic 4/ 31 Prolog interpreter Prolog is an interpreted language: no executable is created (even if it is possible) a Prolog program is loaded into the interpreter queries are executed on this program through the interpreter We will use the GNU Prolog interpreter.
    [Show full text]
  • Introducción a Linux Equivalencias Windows En Linux Ivalencias
    No has iniciado sesión Discusión Contribuciones Crear una cuenta Acceder Página discusión Leer Editar Ver historial Buscar Introducción a Linux Equivalencias Windows en Linux Portada < Introducción a Linux Categorías de libros Equivalencias Windows en GNU/Linux es una lista de equivalencias, reemplazos y software Cam bios recientes Libro aleatorio análogo a Windows en GNU/Linux y viceversa. Ayuda Contenido [ocultar] Donaciones 1 Algunas diferencias entre los programas para Windows y GNU/Linux Comunidad 2 Redes y Conectividad Café 3 Trabajando con archivos Portal de la comunidad 4 Software de escritorio Subproyectos 5 Multimedia Recetario 5.1 Audio y reproductores de CD Wikichicos 5.2 Gráficos 5.3 Video y otros Imprimir/exportar 6 Ofimática/negocios Crear un libro 7 Juegos Descargar como PDF Versión para im primir 8 Programación y Desarrollo 9 Software para Servidores Herramientas 10 Científicos y Prog s Especiales 11 Otros Cambios relacionados 12 Enlaces externos Subir archivo 12.1 Notas Páginas especiales Enlace permanente Información de la Algunas diferencias entre los programas para Windows y y página Enlace corto GNU/Linux [ editar ] Citar esta página La mayoría de los programas de Windows son hechos con el principio de "Todo en uno" (cada Idiomas desarrollador agrega todo a su producto). De la misma forma, a este principio le llaman el Añadir enlaces "Estilo-Windows". Redes y Conectividad [ editar ] Descripción del programa, Windows GNU/Linux tareas ejecutadas Firefox (Iceweasel) Opera [NL] Internet Explorer Konqueror Netscape /
    [Show full text]
  • GNU/Linux AI & Alife HOWTO
    GNU/Linux AI & Alife HOWTO GNU/Linux AI & Alife HOWTO Table of Contents GNU/Linux AI & Alife HOWTO......................................................................................................................1 by John Eikenberry..................................................................................................................................1 1. Introduction..........................................................................................................................................1 2. Traditional Artificial Intelligence........................................................................................................1 3. Connectionism.....................................................................................................................................1 4. Evolutionary Computing......................................................................................................................1 5. Alife & Complex Systems...................................................................................................................1 6. Agents & Robotics...............................................................................................................................1 7. Programming languages.......................................................................................................................2 8. Missing & Dead...................................................................................................................................2 1. Introduction.........................................................................................................................................2
    [Show full text]
  • Pipenightdreams Osgcal-Doc Mumudvb Mpg123-Alsa Tbb
    pipenightdreams osgcal-doc mumudvb mpg123-alsa tbb-examples libgammu4-dbg gcc-4.1-doc snort-rules-default davical cutmp3 libevolution5.0-cil aspell-am python-gobject-doc openoffice.org-l10n-mn libc6-xen xserver-xorg trophy-data t38modem pioneers-console libnb-platform10-java libgtkglext1-ruby libboost-wave1.39-dev drgenius bfbtester libchromexvmcpro1 isdnutils-xtools ubuntuone-client openoffice.org2-math openoffice.org-l10n-lt lsb-cxx-ia32 kdeartwork-emoticons-kde4 wmpuzzle trafshow python-plplot lx-gdb link-monitor-applet libscm-dev liblog-agent-logger-perl libccrtp-doc libclass-throwable-perl kde-i18n-csb jack-jconv hamradio-menus coinor-libvol-doc msx-emulator bitbake nabi language-pack-gnome-zh libpaperg popularity-contest xracer-tools xfont-nexus opendrim-lmp-baseserver libvorbisfile-ruby liblinebreak-doc libgfcui-2.0-0c2a-dbg libblacs-mpi-dev dict-freedict-spa-eng blender-ogrexml aspell-da x11-apps openoffice.org-l10n-lv openoffice.org-l10n-nl pnmtopng libodbcinstq1 libhsqldb-java-doc libmono-addins-gui0.2-cil sg3-utils linux-backports-modules-alsa-2.6.31-19-generic yorick-yeti-gsl python-pymssql plasma-widget-cpuload mcpp gpsim-lcd cl-csv libhtml-clean-perl asterisk-dbg apt-dater-dbg libgnome-mag1-dev language-pack-gnome-yo python-crypto svn-autoreleasedeb sugar-terminal-activity mii-diag maria-doc libplexus-component-api-java-doc libhugs-hgl-bundled libchipcard-libgwenhywfar47-plugins libghc6-random-dev freefem3d ezmlm cakephp-scripts aspell-ar ara-byte not+sparc openoffice.org-l10n-nn linux-backports-modules-karmic-generic-pae
    [Show full text]
  • An Empirical Study of Constraint Logic Programming and Answer Set Programming Solutions of Combinatorial Problems∗
    An Empirical Study of Constraint Logic Programming and Answer Set Programming Solutions of Combinatorial Problems∗ Agostino Dovier† Andrea Formisano‡ Enrico Pontelli§ Abstract This paper presents experimental comparisons between the declarative encod- ings of various computationally hard problems in both Answer Set Programming (ASP) and Constraint Logic Programming over finite domains (CLP(FD)). The objective is to investigate how the solvers in the two domains respond to differ- ent problems, highlighting strengths and weaknesses of their implementations and suggesting criteria for choosing one approach versus the other. Ultimately, the work in this paper is expected to lay the foundations for transfer of technology between the two domains, e.g., suggesting ways to use CLP(FD) in the execution of ASP. Keywords. Declarative Programming, Constraint Logic Programming, An- swer Set Programming, Solvers, Benchmarking. 1 Introduction The objective of this work is to experimentally compare the use of two distinct logic- based paradigms, traditionally recognized as excellent tools to tackle computationally hard problems. The two paradigms considered are Answer Set Programming (ASP) [2] and Constraint Logic Programming over Finite Domains (CLP(FD)) [27]. The moti- vation for this investigation arises from the successful use of both paradigms in dealing with various classes of combinatorial problems, and the need to better understand their respective strengths and weaknesses. Ultimately, we hope this work will indicate meth- ods for integration and cooperation between the two paradigms (e.g., along the lines of [10, 11]). ∗A preliminary version of this paper appeared in the Proceedings of the International Conference on Logic Programming, LNCS 3668, pp. 67–82, Springer Verlag, 2005.
    [Show full text]