1 / 6

Some Recursive Queries

Some Recursive Queries. List Reverse. (b) Unhappy with the results of (a), our instructor now decides that everyone above the median should get an A, and the rest should get a B.

yves
Download Presentation

Some Recursive Queries

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Some Recursive Queries

  2. List Reverse

  3. (b) Unhappy with the results of (a), our instructor now decides that everyone above the median should get an A, and the rest should get a B. Please, write Datalog rules to compute the median and assign the grades accordingly. (To simplify the computation, assume that no two students have the same grade and we have an odd number of students.) For full credit, do this without arithmetic--correct solutions using arithmetic will only earn half credit.

More Related