Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Login
Remember
Register
Ask
Q&A
All Activity
Hot!
Unanswered
Tags
Users
Ask a Question
Ask a Question
Categories
All categories
Topic[话题] (13)
Life[生活] (4)
Technique[技术] (2.1m)
Idea[创意] (3)
Jobs[工作] (2)
Others[杂七杂八] (18)
Code Example[编程示例] (0)
Recent questions tagged prolog
0
votes
1.5k
views
1
answer
prolog - No permission to modify static procedure `(-)/1'
When i do an assert like: assert(-color(red)). it gives me the error: ERROR: assert/1: No permission to ... expected, found `-color' Any ideas? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
703
views
1
answer
prolog - Evaluating an algebraic expression
This is a test review question that I am having trouble with. How do you write a method to evaluate an algebraic ... sure how to go about this. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
416
views
1
answer
prolog - What are the optimal green cuts for successor arithmetics sum?
To grok green cuts in Prolog I am trying to add them to the standard definition of sum in successor arithmetics ( ... green cuts? If yes, how? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
839
views
1
answer
prolog convert numbers into roman numerals
i have this code that converts integers into roman numerals i need to add a function that compares an integer with a ... (N) :- toroman(N). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
502
views
1
answer
prolog - When is the Redo-port called with new variables in Trace/0 and when not?
During my implementation of the Adventure game in Prolog I was wondering when the redo-port is called with new ... for offering any clarity. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
671
views
1
answer
prolog - filter list into separate lists
I need to filter the list [#,d,e,#,f,g] such that I get the output as [[d,e],[f,g]] , I am stuck ... ), filterL(Tail,List) ; filterL(Tail,X) ). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
503
views
1
answer
prolog - Why after pressing semicolon program is back in deep recursion?
I'm trying to understand the semicolon functionality. I have this code: del(X,[X|Rest],Rest). del(X,[Y|Tail] ... that to me? Thanks in advance. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
398
views
1
answer
prolog - Combing generator results and writing result to stream
Currently I can generate expression trees. expression_tree([_|N_s],N_s, [number(0)]). expression_tree([_|N_s0 ... (FD) and multiple constraints See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
627
views
1
answer
prolog - knight's tour efficient solution
I have build a code in prolog to find a series of legal moves in which the knight lands on each square ... way of solving this problem? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
868
views
1
answer
prolog - Excluding all occurrences of the minimum number in a list
As a Prolog newbie, I try to define a predicate filter_min/2 which takes two lists to determine if the second list is ... ,Z); filter(T1,T2,Z). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
619
views
1
answer
prolog - Hanoi Tower(Towers of Hanoi)
I'm trying to do the Towers of Hanoi problem, what I have tried so far: move(1,[H|T],B,C,A1,B1,C) :- A1 = ... A1), nl, write(B1), nl, write(C). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
600
views
1
answer
prolog - I am having problems getting a list of lists into a single list
I am writing a solution to working out distances between numbers in a list using recursion, but have been struggling with ... ,7],[5],[]]. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
675
views
1
answer
prolog - Error 1, Backtrack Stack Full
im trying to write a program in prolog that determine if there is a way from place to place. these are the ... Stack Full". someone? thank you See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
1.0k
views
1
answer
prolog - Split a list in half
I need to define divide so that List [1,2,3,4,5] divides into: a = [1,2,3} b = [4,5] I'm getting an error ... ; divide(T, L2, append(L3,H,Y)) ). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
570
views
1
answer
prolog - I'm curious if Logic Programs can do algebra
I read a brief article about Prolog and Logic Programming. I'm curious if Logic Programs can do algebra. Like would ... get an answer of -2? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
465
views
1
answer
prolog - Hints to understand splendid program to solve Queens
In Art of Prolog of Sterling & Shapiro, exercise Section 14.1 (v): queens(N,Qs) :- length(Qs,N), place_queens(N,Qs ... is N+1, attack(X,N1,Ys). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
447
views
1
answer
prolog - Hints to understand splendid program to solve Queens
In Art of Prolog of Sterling & Shapiro, exercise Section 14.1 (v): queens(N,Qs) :- length(Qs,N), place_queens(N,Qs ... is N+1, attack(X,N1,Ys). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
1.4k
views
1
answer
prolog - Count the number of occurrences of a number in a list
I'm writing a program in prolog that count the number of occurrences of a number in a list count([],X ... several times Any help is appreciated See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
677
views
1
answer
prolog - Gathering all solutions without findall
So as part of my work my code needs to print all the solutions to a query but without using the findall/3 ... press ; and without using findall. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
464
views
1
answer
prolog - Einstein Riddle with List of terms
I implemented Einstein Riddle in Prolog and I'm trying to find out who had a fish at home. I can' ... structures in helper predicates aswell. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
431
views
1
answer
prolog - How do I rewrite the following so it uses if_?
I am doing some easy exercises to get a feel for the language. is_list([]). is_list([_|_]). my_flatten([],[] ... am I intended to use if_ here? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
445
views
1
answer
prolog - Pairwise relation over list
The following higher order predicate succeeds if all pairs of the list's elements are true for a given ... between pairwise distinct and unique See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
597
views
1
answer
prolog - A program that finds the Kth largest element in a list
Am writing a logic program for kth_largest(Xs,K) that implements the linear algorithm for finding the kth largest element ... select(X,Ys,Zs). See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
471
views
1
answer
prolog - DCG Expansion: Is Steadfastness ignored?
Assume I have the following DCG rule: factor(X) --> "(", expr(X), ")". Normally this would be translated to ... , 2012 N238 DIN Draft 2012-11-20 See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
508
views
1
answer
prolog - Declarative uses of memberchk/2
memberchk/2 is a commonly defined predicate that is defined in terms of member/2 like so: memberchk(X, Xs) ... cannot be replaced by memberd/2? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
440
views
1
answer
prolog - Alternatives to the WAM
I remember once reading that there were at least two other alternatives invented roughly at the same time as the WAM. Any pointers? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
596
views
1
answer
prolog to SQL converter
Without thinking to much, it seems to me that a large set of Prolog's functionality could be implemented ... convert Prolog to SQL? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
0
votes
754
views
1
answer
prolog - How do I find the longest list in a list of lists?
I have a list of lists, and I need to find the longest one of them. If there are more than one with the ... s the same which it returns. Thanks. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
prolog
Page:
1
2
3
next »
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question
Just Browsing Browsing
[1] 关于无限级分类的思考
[2] vuex接口请求无论失败或成功都会返回reject?
[3] 'navigationBarTitle' is unavailable in macOS
[4] angular - Append multiple content in ternary - [innerhtml]
[5] React 子组件怎么获取异步props?
[6] taro-微信小程序如何将url转成file文件对象
[7] js 运算符能重载吗?
[8] java - how to handle exception properly if exception occurs while initializing Spring boot web service?
[9] excel - SQL Group Data within the date difference of 90 seconds
[10] How to modify bootstrap 4.5 tooltip css?
2.1m
questions
2.1m
answers
60
comments
57.0k
users
Most popular tags
javascript
python
c#
java
How
android
c++
php
ios
html
sql
r
c
node.js
.net
iphone
asp.net
css
reactjs
jquery
ruby
What
Android
objective
mysql
linux
Is
git
Python
windows
Why
regex
angular
swift
amazon
excel
algorithm
macos
Java
visual
how
bash
Can
multithreading
PHP
Using
scala
angularjs
typescript
apache
spring
performance
postgresql
database
flutter
json
rust
arrays
C#
dart
vba
django
wpf
xml
vue.js
In
go
Get
google
jQuery
xcode
jsf
http
Google
mongodb
string
shell
oop
powershell
SQL
C++
security
assembly
docker
Javascript
Android:
Does
haskell
Convert
azure
debugging
delphi
vb.net
Spring
datetime
pandas
oracle
math
Django
联盟问答网站-Union QA website
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
广告位招租
...