Find Jobs
Hire Freelancers

need to do lisp programming .

$2-8 USD / hour

Sürüyor
İlan edilme: 10 yıldan fazla önce

$2-8 USD / hour

I have to do this. report not necessary .coding is more important 1. We consider a particular assignment of truth values to our given variables a state in a search graph. We will represent a state in Lisp as a list of pairs. Each pair is a list containing the variable name (a symbol in Lisp) and its corresponding truth value t (true) or nil (false). Write a function eval-var that returns the value associated with a particular variable: > (setf *state* '((a nil) (b t) (c t) (d nil))) (A NIL) (B T) (C T) (D NIL)) > (eval-var 'b *state*) T > (eval-var 'd *state*) NIL [login to view URL] will represent a single clause in Lisp as a list of 3 elements. Each element is either a single variable name (i.e., an atom) or a list containing the symbol not followed by a variable name. Write the function eval-clause that evaluates a clause (i.e., returns t or nil) for a given variables state:(defun eval-clause (clause state) ... ) For example > *state* ((A NIL) (B T) (C T) (D NIL)) > (setf *clause* '(a (not b) c)) (A (NOT B) C) > (eval-clause *clause* *state*) T 3. Write a function unsat-clauses that returns all the unsatisfied clauses in an expressions for a given state: (defun unsat-clauses (clauses state) ... ) For example > *state* ((A NIL) (B T) (C T) (D NIL)) > *clauses* ((A (NOT B) C) (A (NOT B) (NOT C)) (A (NOT B) D)) > (unsat-clauses *clauses* *state*) ((A (NOT B) (NOT C)) (A (NOT B) D)) Readme file and a ten-page report would be appreciated
Proje No: 5252892

Proje hakkında

1 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 10 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir

Müşteri hakkında

   OMAN bayrağı
Mutrah, Oman
4,9
359
Ödeme yöntemi onaylandı
Kas 17, 2009 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.