Find Jobs
Hire Freelancers

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

$10-30 USD

Concluído
Publicado há aproximadamente 5 anos

$10-30 USD

Pago na entrega
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 do Projeto: 19252121

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 5 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
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 em 1 dia
5,0 (1 avaliação)
0,2
0,2

Sobre o cliente

Bandeira do(a) UNITED STATES
huntsville, United States
5,0
1
Método de pagamento verificado
Membro desde mar. 3, 2019

Verificação do Cliente

Outros trabalhos deste cliente

java threading 2
$30-250 USD
Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.