1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Artyom0805 [142]
3 years ago
10

Define a function in Scheme (or relation in Prolog) that checks whether a set of elements (represented as a list) is a subset of

another set (represented as a list).
Computers and Technology
1 answer:
mafiozo [28]3 years ago
4 0

Answer:

subset([],[]).

       subset([X|L],[X|S]) :-

           subset(L,S).

       subset(L, [_|S]) :-

           subset(L,S).

Success:

     subset([1,3], [1,2,3]).

     subset(X, [1,3,4]).        % error handling to compare sets in a given order

Fail:

     subset([2,1], [1,2,3]).   % compares in a different order from the first.

Explanation:

The function "Subset" in the source code above accepts two sets, then checks if the first set is a subset of the second. The code returns true if the condition is met.

You might be interested in
give the difference between functional and functional tools in the middle of to the circle give importance​
bija089 [108]

Answer:

hakkuna matata is the radious of a circle

5 0
3 years ago
The ability to use various design software such as Adobe Photoshop, InDesign, and Illustrator would be MOST beneficial to which
NikAS [45]
Answer: b
Explanation:
5 0
3 years ago
When your hands are on home row, your left hand rests lightly on _____. J K L ; A S D F Z X C V Q W E R'
Viktor [21]

your hands sould rest on A S D F, H J K L.

7 0
3 years ago
The given SQL creates a Movie table with an auto-incrementing ID column. Write a single INSERT statement immediately after the C
Snowcat [4.5K]

Answer:

INSERT INTO Movie(Title,Rating,ReleaseDate)

VALUES("Raiders of the Lost ArkPG",'PG',DATE '1981-06-15'),

("The Godfaher",'R',DATE '1972-03-24'),

("The Pursuit of Happyness",'PG-13',DATE '2006-12-15');

Explanation:

The SQL statement uses the "INSERT" clause to added data to the movie table. It uses the single insert statement to add multiple movies by separating the movies in a comma and their details in parenthesis.

3 0
3 years ago
When you get ###### or 1.1E+13 as a result in a cell, it means:
Zigmanuir [339]
This simply means that the cell is not wide enough to be able to show all the contents entered into that cell
7 0
3 years ago
Other questions:
  • In traditional programming, probably the most often used error-handling outcome was to ____.
    15·1 answer
  • Are there protections for people in terms of what data can be collected by different sites?
    10·1 answer
  • All of the following are types of goals listed in the course except?
    14·2 answers
  • Brian is selecting an authentication protocol for a PPP connection. He would like to select an option that encrypts both usernam
    7·1 answer
  • Developers and organizations all around the world leverage ______ extensively.
    9·2 answers
  • When saving a PowerPoint presentation as a show which object will not be saved with the presentation
    13·2 answers
  • IN WHICH COUNTRY DO THEY LET YOU PLAY MINECRAFT IN SCHOOL?
    8·2 answers
  • Which statement assigns the value 140 to the variable streetNumber in Python?
    13·1 answer
  • What is the difference between * and **operator? in python ​
    9·1 answer
  • A mobile phone app asks the user to point the phone's camera at a room and then applies the phone's lidar scanning function. wha
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!