CSC 151 Spring 2020 Topic: List Recursion March 6, 2020 Day 20 - - PowerPoint PPT Presentation

csc 151 spring 2020 topic list recursion
SMART_READER_LITE
LIVE PREVIEW

CSC 151 Spring 2020 Topic: List Recursion March 6, 2020 Day 20 - - PowerPoint PPT Presentation

CSC 151 Spring 2020 Topic: List Recursion March 6, 2020 Day 20 Agenda for today Peer Support Opportunities Quiz 6 Topics Exam 2 Reminders List Recursion Lab Reflection Wrap-up Peer Support Opportunities Orchestra


slide-1
SLIDE 1

CSC 151 Spring 2020 Topic: List Recursion

March 6, 2020 Day 20

slide-2
SLIDE 2

Agenda for today

  • Peer Support Opportunities
  • Quiz 6 Topics
  • Exam 2 Reminders
  • List Recursion
  • Lab
  • Reflection
  • Wrap-up
slide-3
SLIDE 3

Peer Support Opportunities

  • Orchestra Concert, Saturday at 2pm
slide-4
SLIDE 4

Quiz 6 Topics

Recursion Verifying Preconditions

slide-5
SLIDE 5

Exam 2 Reminders

Will be posted by 5:00pm today, due next Thursday. Open Notes/Book/Web with citations. You may only ask me for help – no one else. Getting Started: Download Starter Code Generate a random ID Read every problem carefully, as well as Exam Procedures Tips: Start Early – Don’t Panic Save Often Ask me for help There’s more to Life than CS: Do the Prologue & Epilogue, document your time

slide-6
SLIDE 6

List Recursion

Assume we have the procedure (westernmost city1 city2) Finish the following recursive procedure: (define westernmost-city (lambda (zips) (if … … …. )))

slide-7
SLIDE 7

List Recursion

Assume we have the procedure (westernmost city1 city2) Finish the following recursive procedure: (define westernmost-city (lambda (zips) (if (null? (cdr zips)) (car zips) (westernmost (car zips) (westernmost-city (cdr zips)) ) )))

slide-8
SLIDE 8

Lab Time

Start with the person on the East side of the room.

slide-9
SLIDE 9

Reflection Time

Our topic for Monday is Numeric Recursion. Given that today’s topic for reading was List Recursion, what do you think Numeric Recursion will look like? Try to be as specific as possible. Talk about the base case and recursive case. Can you guess a ‘common format’?

slide-10
SLIDE 10

Upcoming Work

Reading for Monday Finish today’s lab before Monday

  • Exam 2 Prologue due Sunday by 10:30 pm

Please submit Exercise 6 by Monday at 10:30 pm. Include 6P documentation. To: csc-151-02-grader@grinnell.edu CC: Your lab partner Subject: CSC 151-02 Lab 3/6