Question: MATHEMATICAL LOGIC Idea 2 . 2 3 [ Inductive function definition ] Let S be defined inductively from basis B and some construction rule. to
MATHEMATICAL LOGIC
Idea Inductive function definition
Let S be defined inductively from basis B and some construction rule. to difine a function f on elements of S do the following:
Basis : : Specify the value fx for each x in B
Ind : : For each way an x in S can be obtained from some y yn in S specify how to obtain fx from the values fy fyn
Clsr : : The closure of S ensures that f is defined for all x in S
Exercise
Let be an alphabet. We call its elements characters.
a We can implement finite sets of strings as lists of strings.
Define an inductive function which checks if a given string win is in a list lin List
b We can implement finite sets of strings as tries of characters.
Define an inductive function which checks if a given string win is in a trie tin Trie
c Do these inductive functions follow Idea one of the extensions earlier in this exercise set, or
do you need to create yet another idea to make the above work?
Provide details for your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
