1 / 9

Recursive Method Tracing: Understanding Programming Concepts

Explore recursive methods, tracing code examples like funA and funcB, learn Binary Search, Backtracking, N-Queens, and Linked Lists. No reading or written homework. Program 6 due. Have questions?

liana
Download Presentation

Recursive Method Tracing: Understanding Programming Concepts

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