SlideShare a Scribd company logo
Submit Search
Upload
On Applying Or-Parallelism and Tabling to Logic Programs
Report
Share
L
Lino Possamai
PhD, Computer Science at University of Bologna
Follow
•
4 likes
•
681 views
1
of
20
On Applying Or-Parallelism and Tabling to Logic Programs
•
4 likes
•
681 views
Report
Share
Technology
Lecture about Or-Parallelism and Tabling applied to Logic Programming
Read more
L
Lino Possamai
PhD, Computer Science at University of Bologna
Follow
Recommended
2 a stacks by
2 a stacks
Nguync91368
70 views
•
19 slides
2 b queues by
2 b queues
Nguync91368
61 views
•
21 slides
1 list datastructures by
1 list datastructures
Nguync91368
35 views
•
24 slides
Recursion Pattern Analysis and Feedback by
Recursion Pattern Analysis and Feedback
Sander Mak (@Sander_Mak)
1K views
•
58 slides
Data structures by
Data structures
Saurabh Mishra
20.2K views
•
254 slides
Libro de MATLAB by
Libro de MATLAB
guestecaca7
3.8K views
•
449 slides
More Related Content
What's hot
Chap12 scr by
Chap12 scr
Hirwanto Iwan
379 views
•
16 slides
Matlab for beginners, Introduction, signal processing by
Matlab for beginners, Introduction, signal processing
Dr. Manjunatha. P
730 views
•
24 slides
A recommender system for generalizing and refining code templates by
A recommender system for generalizing and refining code templates
Coen De Roover
843 views
•
20 slides
New c sharp3_features_(linq)_part_iii by
New c sharp3_features_(linq)_part_iii
Nico Ludwig
258 views
•
22 slides
Fundamentals of matlab by
Fundamentals of matlab
Narendra Kumar Jangid
2.7K views
•
66 slides
Unit 5 by
Unit 5
Vasavi College of Engg
24K views
•
37 slides
What's hot
(20)
Chap12 scr by Hirwanto Iwan
Chap12 scr
Hirwanto Iwan
•
379 views
Matlab for beginners, Introduction, signal processing by Dr. Manjunatha. P
Matlab for beginners, Introduction, signal processing
Dr. Manjunatha. P
•
730 views
A recommender system for generalizing and refining code templates by Coen De Roover
A recommender system for generalizing and refining code templates
Coen De Roover
•
843 views
New c sharp3_features_(linq)_part_iii by Nico Ludwig
New c sharp3_features_(linq)_part_iii
Nico Ludwig
•
258 views
Fundamentals of matlab by Narendra Kumar Jangid
Fundamentals of matlab
Narendra Kumar Jangid
•
2.7K views
Unit 5 by Vasavi College of Engg
Unit 5
Vasavi College of Engg
•
24K views
Matlab-Data types and operators by Luckshay Batra
Matlab-Data types and operators
Luckshay Batra
•
938 views
Run time storage by Rasineni Madhan Mohan Naidu
Run time storage
Rasineni Madhan Mohan Naidu
•
26.8K views
Lesson 6 recursion by MLG College of Learning, Inc
Lesson 6 recursion
MLG College of Learning, Inc
•
189 views
Introduction to data structures and Algorithm by Dhaval Kaneria
Introduction to data structures and Algorithm
Dhaval Kaneria
•
45.6K views
4. Recursion - Data Structures using C++ by Varsha Patil by widespreadpromotion
4. Recursion - Data Structures using C++ by Varsha Patil
widespreadpromotion
•
3.3K views
Data structure by Muhammad Farhan
Data structure
Muhammad Farhan
•
972 views
application based Presentation on matlab simulink & related tools by Eshaan Verma
application based Presentation on matlab simulink & related tools
Eshaan Verma
•
388 views
Matlab day 1: Introduction to MATLAB by reddyprasad reddyvari
Matlab day 1: Introduction to MATLAB
reddyprasad reddyvari
•
1K views
Lesson 1 overview by MLG College of Learning, Inc
Lesson 1 overview
MLG College of Learning, Inc
•
126 views
Introduction of data structure by eShikshak
Introduction of data structure
eShikshak
•
8.6K views
MATLAB/SIMULINK for engineering applications: day 3 by reddyprasad reddyvari
MATLAB/SIMULINK for engineering applications: day 3
reddyprasad reddyvari
•
2.7K views
Chapter 7 ds by Hanif Durad
Chapter 7 ds
Hanif Durad
•
142 views
Scala for Machine Learning by Patrick Nicolas
Scala for Machine Learning
Patrick Nicolas
•
2.1K views
(chapter 3) A Concise and Practical Introduction to Programming Algorithms in... by Frank Nielsen
(chapter 3) A Concise and Practical Introduction to Programming Algorithms in...
Frank Nielsen
•
169 views
Viewers also liked
Frida kahlo presentation. mc kaylee miller. 7th hr by
Frida kahlo presentation. mc kaylee miller. 7th hr
mmiller24
140 views
•
6 slides
GUERRERO PACIFISTA by
GUERRERO PACIFISTA
Samanta Tapia
159 views
•
2 slides
Voluntary Employee Benefits by
Voluntary Employee Benefits
sgarrett
595 views
•
14 slides
Slashdot.Org by
Slashdot.Org
Lino Possamai
532 views
•
10 slides
Opendag zaterdag 17 maart 2012 otc opleiding & trainingen curacao tony lin... by
Opendag zaterdag 17 maart 2012 otc opleiding & trainingen curacao tony lin...
OTC Opleiding & Trainingen Curaçao
376 views
•
1 slide
Novo modelo do relatório de responsabilidade socioambiental sff - ganin by
Novo modelo do relatório de responsabilidade socioambiental sff - ganin
Francis Zeman
634 views
•
7 slides
Viewers also liked
(17)
Frida kahlo presentation. mc kaylee miller. 7th hr by mmiller24
Frida kahlo presentation. mc kaylee miller. 7th hr
mmiller24
•
140 views
GUERRERO PACIFISTA by Samanta Tapia
GUERRERO PACIFISTA
Samanta Tapia
•
159 views
Voluntary Employee Benefits by sgarrett
Voluntary Employee Benefits
sgarrett
•
595 views
Slashdot.Org by Lino Possamai
Slashdot.Org
Lino Possamai
•
532 views
Opendag zaterdag 17 maart 2012 otc opleiding & trainingen curacao tony lin... by OTC Opleiding & Trainingen Curaçao
Opendag zaterdag 17 maart 2012 otc opleiding & trainingen curacao tony lin...
OTC Opleiding & Trainingen Curaçao
•
376 views
Novo modelo do relatório de responsabilidade socioambiental sff - ganin by Francis Zeman
Novo modelo do relatório de responsabilidade socioambiental sff - ganin
Francis Zeman
•
634 views
Spanish presentation by rjacky101
Spanish presentation
rjacky101
•
353 views
Para que con tus santos te alabe by monica eljuri
Para que con tus santos te alabe
monica eljuri
•
791 views
المصحف الشريف برواية حفص عن عاصم by قال تعالى: "كتاب أنزلناه إليك مبارك ليدبروا آياته وليتذكر أولو الألباب".
المصحف الشريف برواية حفص عن عاصم
قال تعالى: "كتاب أنزلناه إليك مبارك ليدبروا آياته وليتذكر أولو الألباب".
•
4.8K views
Uprising at Akwesasne by Dr Rugenstein by Ernest Rugenstein
Uprising at Akwesasne by Dr Rugenstein
Ernest Rugenstein
•
2.2K views
HBX Acceptance Letter by Xiao Zheng
HBX Acceptance Letter
Xiao Zheng
•
328 views
Sesión 2 by mireyalopez12
Sesión 2
mireyalopez12
•
155 views
Beeline RPO Dossier by mariag888
Beeline RPO Dossier
mariag888
•
5.8K views
ENSAYO, PEDRO SANCHEZ ESCOBESDO CAPITULO 1 by Samanta Tapia
ENSAYO, PEDRO SANCHEZ ESCOBESDO CAPITULO 1
Samanta Tapia
•
244 views
Online Classified Ad in Newspaper Whitianga, Mercury Bay | the Mercury Bay In... by theinformer119
Online Classified Ad in Newspaper Whitianga, Mercury Bay | the Mercury Bay In...
theinformer119
•
1.3K views
Machine Learning and Data Mining: 08 Clustering: Hierarchical by Pier Luca Lanzi
Machine Learning and Data Mining: 08 Clustering: Hierarchical
Pier Luca Lanzi
•
3.5K views
HERENCIA MATERNA O MITOCONDRIAL by Samanta Tapia
HERENCIA MATERNA O MITOCONDRIAL
Samanta Tapia
•
16.7K views
Similar to On Applying Or-Parallelism and Tabling to Logic Programs
Control system Lab record by
Control system Lab record
Yuvraj Singh
6.3K views
•
37 slides
BARRACUDA, AN OPEN SOURCE FRAMEWORK FOR PARALLELIZING DIVIDE AND CONQUER ALGO... by
BARRACUDA, AN OPEN SOURCE FRAMEWORK FOR PARALLELIZING DIVIDE AND CONQUER ALGO...
IJCI JOURNAL
12 views
•
13 slides
Rapport_Cemracs2012 by
Rapport_Cemracs2012
Jussara F.M.
273 views
•
13 slides
A Modified Chaotic Firefly Algorithm For Solving Discrete Logarithm Problem A... by
A Modified Chaotic Firefly Algorithm For Solving Discrete Logarithm Problem A...
Erica Thompson
2 views
•
8 slides
GRAPH MATCHING ALGORITHM FOR TASK ASSIGNMENT PROBLEM by
GRAPH MATCHING ALGORITHM FOR TASK ASSIGNMENT PROBLEM
IJCSEA Journal
16 views
•
14 slides
Parallel algorithms by
Parallel algorithms
Danish Javed
4.2K views
•
29 slides
Similar to On Applying Or-Parallelism and Tabling to Logic Programs
(20)
Control system Lab record by Yuvraj Singh
Control system Lab record
Yuvraj Singh
•
6.3K views
BARRACUDA, AN OPEN SOURCE FRAMEWORK FOR PARALLELIZING DIVIDE AND CONQUER ALGO... by IJCI JOURNAL
BARRACUDA, AN OPEN SOURCE FRAMEWORK FOR PARALLELIZING DIVIDE AND CONQUER ALGO...
IJCI JOURNAL
•
12 views
Rapport_Cemracs2012 by Jussara F.M.
Rapport_Cemracs2012
Jussara F.M.
•
273 views
A Modified Chaotic Firefly Algorithm For Solving Discrete Logarithm Problem A... by Erica Thompson
A Modified Chaotic Firefly Algorithm For Solving Discrete Logarithm Problem A...
Erica Thompson
•
2 views
GRAPH MATCHING ALGORITHM FOR TASK ASSIGNMENT PROBLEM by IJCSEA Journal
GRAPH MATCHING ALGORITHM FOR TASK ASSIGNMENT PROBLEM
IJCSEA Journal
•
16 views
Parallel algorithms by Danish Javed
Parallel algorithms
Danish Javed
•
4.2K views
05 dataflow by ali Hussien
05 dataflow
ali Hussien
•
167 views
Group Project by Xiyuan Sun
Group Project
Xiyuan Sun
•
176 views
Functional Programming in Scala: Notes by Roberto Casadei
Functional Programming in Scala: Notes
Roberto Casadei
•
1.6K views
A Domain-Specific Embedded Language for Programming Parallel Architectures. by Jason Hearne-McGuiness
A Domain-Specific Embedded Language for Programming Parallel Architectures.
Jason Hearne-McGuiness
•
348 views
Deep learning concepts by Joe li
Deep learning concepts
Joe li
•
30 views
Parallel programming Comparisions by Muhammad Bilal Khan
Parallel programming Comparisions
Muhammad Bilal Khan
•
202 views
Open Problems in Automatically Refactoring Legacy Java Software to use New Fe... by Raffi Khatchadourian
Open Problems in Automatically Refactoring Legacy Java Software to use New Fe...
Raffi Khatchadourian
•
276 views
Introduction to OpenMP (Performance) by Akhila Prabhakaran
Introduction to OpenMP (Performance)
Akhila Prabhakaran
•
507 views
A review of automatic differentiationand its efficient implementation by ssuserfa7e73
A review of automatic differentiationand its efficient implementation
ssuserfa7e73
•
110 views
Calfem34 by Adriana Amaro Diacenco
Calfem34
Adriana Amaro Diacenco
•
249 views
Javascript by Sheldon Abraham
Javascript
Sheldon Abraham
•
336 views
Parallel algorithms by guest084d20
Parallel algorithms
guest084d20
•
7.9K views
ScalaDays 2013 Keynote Speech by Martin Odersky by Typesafe
ScalaDays 2013 Keynote Speech by Martin Odersky
Typesafe
•
14.1K views
Java mcq by avinash9821
Java mcq
avinash9821
•
4.6K views
More from Lino Possamai
Music Motive @ H-ack by
Music Motive @ H-ack
Lino Possamai
727 views
•
5 slides
Metodi matematici per l’analisi di sistemi complessi by
Metodi matematici per l’analisi di sistemi complessi
Lino Possamai
634 views
•
58 slides
Multidimensional Analysis of Complex Networks by
Multidimensional Analysis of Complex Networks
Lino Possamai
708 views
•
59 slides
Optimization of Collective Communication in MPICH by
Optimization of Collective Communication in MPICH
Lino Possamai
1.5K views
•
21 slides
A static Analyzer for Finding Dynamic Programming Errors by
A static Analyzer for Finding Dynamic Programming Errors
Lino Possamai
959 views
•
13 slides
Cure, Clustering Algorithm by
Cure, Clustering Algorithm
Lino Possamai
19.9K views
•
19 slides
More from Lino Possamai
(6)
Music Motive @ H-ack by Lino Possamai
Music Motive @ H-ack
Lino Possamai
•
727 views
Metodi matematici per l’analisi di sistemi complessi by Lino Possamai
Metodi matematici per l’analisi di sistemi complessi
Lino Possamai
•
634 views
Multidimensional Analysis of Complex Networks by Lino Possamai
Multidimensional Analysis of Complex Networks
Lino Possamai
•
708 views
Optimization of Collective Communication in MPICH by Lino Possamai
Optimization of Collective Communication in MPICH
Lino Possamai
•
1.5K views
A static Analyzer for Finding Dynamic Programming Errors by Lino Possamai
A static Analyzer for Finding Dynamic Programming Errors
Lino Possamai
•
959 views
Cure, Clustering Algorithm by Lino Possamai
Cure, Clustering Algorithm
Lino Possamai
•
19.9K views
Recently uploaded
Voice Logger - Telephony Integration Solution at Aegis by
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma
39 views
•
1 slide
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
IttrainingIttraining
58 views
•
8 slides
Kyo - Functional Scala 2023.pdf by
Kyo - Functional Scala 2023.pdf
Flavio W. Brasil
400 views
•
92 slides
PRODUCT PRESENTATION.pptx by
PRODUCT PRESENTATION.pptx
angelicacueva6
15 views
•
1 slide
Serverless computing with Google Cloud (2023-24) by
Serverless computing with Google Cloud (2023-24)
wesley chun
11 views
•
33 slides
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc
11 views
•
29 slides
Recently uploaded
(20)
Voice Logger - Telephony Integration Solution at Aegis by Nirmal Sharma
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma
•
39 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
IttrainingIttraining
•
58 views
Kyo - Functional Scala 2023.pdf by Flavio W. Brasil
Kyo - Functional Scala 2023.pdf
Flavio W. Brasil
•
400 views
PRODUCT PRESENTATION.pptx by angelicacueva6
PRODUCT PRESENTATION.pptx
angelicacueva6
•
15 views
Serverless computing with Google Cloud (2023-24) by wesley chun
Serverless computing with Google Cloud (2023-24)
wesley chun
•
11 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc
•
11 views
Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdf
WillDavies22
•
18 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson
•
92 views
Future of Indian ConsumerTech by Kapil Khandelwal (KK)
Future of Indian ConsumerTech
Kapil Khandelwal (KK)
•
22 views
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdf
Virendra Rai, PMP
•
23 views
Evolving the Network Automation Journey from Python to Platforms by Network Automation Forum
Evolving the Network Automation Journey from Python to Platforms
Network Automation Forum
•
13 views
HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn
•
22 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdf
madhurjyapb
•
14 views
Network Source of Truth and Infrastructure as Code revisited by Network Automation Forum
Network Source of Truth and Infrastructure as Code revisited
Network Automation Forum
•
27 views
Powerful Google developer tools for immediate impact! (2023-24) by wesley chun
Powerful Google developer tools for immediate impact! (2023-24)
wesley chun
•
10 views
Unit 1_Lecture 2_Physical Design of IoT.pdf by StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec
•
12 views
20231123_Camunda Meetup Vienna.pdf by Phactum Softwareentwicklung GmbH
20231123_Camunda Meetup Vienna.pdf
Phactum Softwareentwicklung GmbH
•
41 views
Melek BEN MAHMOUD.pdf by MelekBenMahmoud
Melek BEN MAHMOUD.pdf
MelekBenMahmoud
•
14 views
Piloting & Scaling Successfully With Microsoft Viva by Richard Harbridge
Piloting & Scaling Successfully With Microsoft Viva
Richard Harbridge
•
12 views
Mini-Track: Challenges to Network Automation Adoption by Network Automation Forum
Mini-Track: Challenges to Network Automation Adoption
Network Automation Forum
•
13 views
On Applying Or-Parallelism and Tabling to Logic Programs
1.
On Applying Or-Parallelism
and Tabling to Logic Programs Possamai Lino Department of Computer Science University of Venice www.possamai.it/lino Logic Programming Lecture February 2, 2007
2.
3.
4.
5.
Or-Parallelism (YapOr)
6.
An Or-Parallelism Example
p(L):-s(L,M),t(M,L). p(K):-r(K). q(1). q(2). s(2,3). s(4,5). t(3,3). t(3,2). r(1). r(3). ?- t(X,3),p(Y),q(Y). p(Y),q(Y) s(L,M),t(M,L),q(L) {X/3} {Y/L} r(K),q(K) {Y/K} t(5,4),q(4) t(3,2),q(2) {L/2,M/3} {L/4, M/5} {K/1} {K/3} q(1) q(3) W1 W1 W2 W1 W3 W2 W4 W1 q(2) Success Fail Success Fail
7.
8.
9.
10.
11.
Tabling (YapTab)
12.
13.
14.
15.
?-table path. path(X,Z):-path(X,Y),path(Y,Z).
path(X,Z):-arc(X,Z). arc(a,b). arc(b,c). Tabling, an example ?-path(a,Z). path(a,Y),path(Y,Z) arc(a,Z) path(b,Z) path(b,Z) path(b,Y),path(Y,Z) arc(b,Z) path(c,Z) path(c,Z) path(c,Y),path(Y,Z) arc(c,Z) {Z/b} fail fail {Z/c} fail fail fail fail path(a,Z) path(b,Z) path(c,Z) {Z/b} {Z/c} {Z/c} {Z/c} path(c,Z) fail path(a,Y),path(Y,Z) Generator Node Consumer Node Interior Node Answer Subgoal
16.
17.
18.
19.
20.