Find Jobs
Hire Freelancers

Prolog: test list membership without using built in libraries/logic

$10-30 USD

已完成
已发布大约 5 年前

$10-30 USD

货到付款
I need prolog logic that determines if two lists have any elements in common. For example, if I have a list containing numbers [2,4,5,6,8] and a second list containing numbers [1,3,5,6,9] this will return true because they have 5 and 6 in common. However, [1,2,3] and [5,6,8] will return false because there are no common elements between these lists. ex: ?- similarity([2,4,5,6,8], [1,3,5,6,9]). true. ?- similarity([1,2,3], [5,6,8]). false. NO BUILT IN LOGIC. that includes disjoint, membership, intersection, etc. I NEED THIS ASAP, BY TOMORROW. thanks.
项目 ID: 19252121

关于此项目

1条提案
远程项目
活跃5 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello there! I already implemented what you ask for in swi-prolog, I can give it to you right now. If it's another implementation of Prolog, I have to see if I can convert it, but in principle I should be able to. Hope to hear from you! I'll prove I have it, pasting here the implementation of member/2. mymember(X, [X|_]) :- !. mymember(X, [_, T]) :- mymember(X, T).
$30 USD 在1天之内
5.0 (1条评论)
0.2
0.2

关于客户

UNITED STATES的国旗
huntsville, United States
5.0
1
付款方式已验证
会员自3月 3, 2019起

客户认证

这个客户的其他工作

java threading 2
$30-250 USD
谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。