Let A = {0, 1, 2} and let S be the set of all strings over A. Define a relation L from S to Znonneg follows: For every string s in S and every nonnega- tive integer n, as (s, n) E L means that the length of s is n. Then L is a function because every string in S has one and only one length. Find L(0201) and L(12).

Elements Of Modern Algebra
8th Edition
ISBN:9781285463230
Author:Gilbert, Linda, Jimmie
Publisher:Gilbert, Linda, Jimmie
Chapter1: Fundamentals
Section1.7: Relations
Problem 2E: 2. In each of the following parts, a relation is defined on the set of all integers. Determine in...
icon
Related questions
Question
Let A = {0, 1, 2} and let S be the set of all strings
over A. Define a relation L from S to Znonneg
follows: For every string s in S and every nonnega-
tive integer n,
as
(s, n) E L
means that
the length of s is n.
Then L is a function because every string in S has
one and only one length. Find L(0201) and L(12).
Transcribed Image Text:Let A = {0, 1, 2} and let S be the set of all strings over A. Define a relation L from S to Znonneg follows: For every string s in S and every nonnega- tive integer n, as (s, n) E L means that the length of s is n. Then L is a function because every string in S has one and only one length. Find L(0201) and L(12).
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer