Search found 3 matches

by lispstudent
Fri Nov 06, 2015 10:37 pm
Forum: Homework
Topic: encoding and decoding randomly
Replies: 3
Views: 11735

Re: encoding and decoding randomly

How do they define "the" right encoding? Seems like there could be (at least for some messages) more than one potential encoding. of course you are right there are I have just written three to be an example but actually around 15 encoded words will be entered as input to put out the encoder
by lispstudent
Fri Nov 06, 2015 8:09 am
Forum: Homework
Topic: encoding and decoding randomly
Replies: 3
Views: 11735

encoding and decoding randomly

There is a file which includes words from beginning of 26 letter english alphabet to end about 16000 or more Like *words.lisp* of content, (defparameter *words* '( (a b a c a) (a b a c a s) (a b a c k) . . . . (z y m o t i c) (z y m u r g y)) As I said the alphabet file also there is. Like, *alph.li...
by lispstudent
Thu Oct 15, 2015 12:19 pm
Forum: Homework
Topic: print same elements in two lists
Replies: 1
Views: 7037

print same elements in two lists

I've been trying to write a lisp code that prints intersecting elements. But there is a exception. It can be nested list. Below you can see expected and gotten output. Gotten output: > (intersect '(a b c) '( b a c)) a b c >(intersect '(a (b c) d) '(a b c d)) a d >(intersect '(a b (c f)) '(a d (c f) ...