This shows you the differences between two versions of the page.

Both sides previous revision Previous revision Next revision | Previous revision | ||

cs-236:homework-8 [2017/11/09 11:15] brob144 [Problems] |
cs-236:homework-8 [2017/11/21 11:38] kylej13 [Problems] |
||
---|---|---|---|

Line 15: | Line 15: | ||

==Problems== | ==Problems== | ||

All problems are worth 3 points and reference problems in the course text. International book problems switch from chapter 9 to be chapter 7. The number is the same on all but the last as noted. | All problems are worth 3 points and reference problems in the course text. International book problems switch from chapter 9 to be chapter 7. The number is the same on all but the last as noted. | ||

- | # (6 points) 9.5.2 | + | # (5 points) 9.5.2 |

# (4 points) 9.5.16 (''ad'' = ''bc'' is multiplication and not concatenation) | # (4 points) 9.5.16 (''ad'' = ''bc'' is multiplication and not concatenation) | ||

# (1 points) 9.5.22 | # (1 points) 9.5.22 | ||

# (3 points) 9.5.24 | # (3 points) 9.5.24 | ||

# (4 points) 9.5.42 | # (4 points) 9.5.42 | ||

- | # (5 points) 9.5.44 | + | # (5 points) 9.5.44 |

# (4 points) 9.5.48 | # (4 points) 9.5.48 | ||

# (2 points) 9.5.67 | # (2 points) 9.5.67 | ||

# (5 points) 9.6.2 | # (5 points) 9.6.2 | ||

- | # (4 points) 9.6.4 | + | # (4 points) 9.6.4 (for part a, assume two different people can be the same height) |

# (3 points) 9.6.16 (the symbol in part c is lexicographic comparison) | # (3 points) 9.6.16 (the symbol in part c is lexicographic comparison) | ||

# (1 points) 9.6.20 | # (1 points) 9.6.20 | ||

- | # (3 points) 9.6.22 | + | # (4 points) 9.6.22 |

# (4 points) 9.6.34 (| is the divisibility operator, a|b is true if and only if b is a multiple of a) | # (4 points) 9.6.34 (| is the divisibility operator, a|b is true if and only if b is a multiple of a) | ||

# (4 points) 9.6.44 | # (4 points) 9.6.44 |