1 / 9

For Wednesday

For Wednesday. No reading No written homework Program 6 due. Program 6. Any questions?. Recursive Method Tracing. int funA(int num) { int answer; if (num == 10) answer = 100; else answer = funA(num-1) + num; return answer; }. Example 2.

liana
Download Presentation

For Wednesday

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. For Wednesday • No reading • No written homework • Program 6 due

  2. Program 6 • Any questions?

  3. Recursive Method Tracing • int funA(int num){ int answer; if (num == 10) answer = 100; else answer = funA(num-1) + num; return answer;}

  4. Example 2 • int funcB(int num){ int answer; if (num == 3) answer = 5; else answer = funcB(num+1) * 2; return answer;}

  5. Searching

  6. Binary Search

  7. Backtracking • What’s the basic concept?

  8. N-Queens

  9. Linked List Review

More Related