Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: xristiana
  • Content: Threads
  • Order by date
  1. xristiana

    permutation list

    Hello to everyone, I am studying from a prolog tutorial, but I have stuck in a programm, and can't figure it out at all. It's the perm predicate, I think it's in the prolog or sth, it's definition is this(with the definition of takeout too that it uses): takeout(X,[X|R],R)...
  2. xristiana

    reverse_list

    Hi, I don't understand how this programm works. reverse_list([], []). reverse_list([Head | Tail], ReversedList) :- reverse_list(Tail, ReversedTail), append(ReversedTail, [Head], ReversedList). It is assumed to reverse a list, but I don't know what calls does it make and with what order. Can...
  3. xristiana

    couples

    Hi, I want to apologize to all and especially Mr. Kahleen for my continuous asking for help, but I have boggled. Here's what I have to do next, I have a list A and a list B with the couples of the elements of list A, for example: list A=[4,5,6,7,8,9] and list B=[[4,5],[6,7],[8,9]]. I have made a...
  4. xristiana

    list with mutual elements

    Hi, sorry for the many posts, but I have lots of programms to solve... Now I have to solve a programm with two lists, that have at least one mutual element. I tried this without using append, but it's wrong. Can anyone help me? Thanks in advance. Here's my programm...
  5. xristiana

    embraced list

    Hi again. :( I have other three programms, the first one is this: I have to make a programm, that the first list A, is embraced in the second list B. I tested two programms, but they were wrong. An example of the embraced list is, A=[5,6,7] and B=[0,3,5,6,7,9]. Thank you in advance.
  6. xristiana

    list that leads or comes after another list

    ? 'm writing this again, because noone noticed, probably because I had one reply by myself, because I had made a mistake. So, if you haven't seen, it, please answer me my questions. Thanks. "Hello everyone,I have to write two programms with lists, with two arguments. In the first programm the...
  7. xristiana

    leading list

    Hello everyone, I have to write two programms with lists, with two arguments. In the first programm the first argument(list)must lead the second(list) and in the second programm the opposite. I don't understand the theory very well, when I have news I'll inform you, unless you understand it...
  8. xristiana

    making two new arguments

    Hi, I have written a small programm which shows a cd' s artist, released album, year, etc which is in this way: cd(album(band(‘Coldplay’), name(‘Viva la Vida or Death and All His Friends’)), release(year(2008), uschart(1)), genre(‘Alternative rock’), price(new(25), used(18))). This...

Part and Inventory Search

Back
Top