Find Jobs
Hire Freelancers

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

$10-30 USD

Complété
Publié il y a environ 5 ans

$10-30 USD

Payé lors de la livraison
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.
N° de projet : 19252121

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 5 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
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 en 1 jour
5,0 (1 commentaire)
0,2
0,2

À propos du client

Drapeau de UNITED STATES
huntsville, United States
5,0
1
Méthode de paiement vérifiée
Membre depuis mars 3, 2019

Vérification du client

Autres travaux de ce client

java threading 2
$30-250 USD
Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.