Your IP : 3.135.186.233


Current Path : /var/www/u0635749/data/www/hobbyclick.ru/www.hobbyclick.ru/qujwz48a/index/
Upload File :
Current File : /var/www/u0635749/data/www/hobbyclick.ru/www.hobbyclick.ru/qujwz48a/index/cs61a-discussion-5.php

<!DOCTYPE html>
<html lang="ro">
<head>

  
  <meta http-equiv="Content-type" value="text/html; charset=UTF-8">



    
  <meta charset="UTF-8">
<!-- viewport meta -->



    

    
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">


    
  <meta name="viewport" content="width=device-width, initial-scale=1">


    
  <meta name="description" content="">


    
  <meta name="keywords" content="">

    
  <title></title>
<!-- inject:css -->
 
</head>








<body class="preload pricing-page">



    <!--================================

        START MENU AREA

    =================================-->

    <!-- start menu-area -->

    
<div class="menu-area menu--style3">

        <!-- start .top-menu-area -->

        
<div class="top-menu-area">

            <!-- start .container -->

            
<div class="container">

                <!-- start .row -->

                
<div class="row">

                    <!-- start .col-md-3 -->

                    
<div class="col-lg-3 col-md-3 col-6 v_middle">

                        
<div class="logo">

                            




                          <img src="/images/" style="width: 180px;" alt="logo image" class="img-fluid">




                            

                        </div>


                    </div>


                    <!-- end /.col-md-3 -->



                    <!-- start .col-md-5 -->

                    
<div class="col-lg-8 offset-lg-1 col-md-9 col-6 v_middle">

                        <!-- start .author-area --></div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="">
<div class="modules__content">
<div class="withdraw_module withdraw_history"><br>
<div class="modules__title">
                            
<h3>Cs61a discussion 5. 
Discussion 1: Control, Environment Diagrams disc01.</h3>

                        </div>

                              
<div class="col-lg-12">
                                
<div class="progress_wrapper">
                                    
<div class="labels clearfix">
                                        
<p>Cs61a discussion 5  Agenda 3 Attendance Tree Recursion Lists List Slicing List Comprehensions.  Now switch to Pensieve: Everyone: Go to discuss.  Maintainer - 👋 Welcome! We’re using Discussions as a place to connect with other members of our community.  Be careful about the order of your if and elif clauses: try first checking if the current number is divisible by both 3 and 5, then check for just divisibility by 3 and just divisibility by 5.  Discussion 1 ; Lectures. 2 A run-length encoding is a method of compressing a sequence of letters.  Last Updated: Spring 2022.  (Your group number is the number of your Discord Spring: 3.  Office Hours: Monday 1-2 pm // Morgan 109 .  We anticipate some rearrangements during the second week in response to oversubscribed or undersubscribed sections.  scm&gt; nil scm&gt; (define lst (cons 1 (cons 2 (cons 3 nil)))) lst scm&gt; lst (1 2 3) scm&gt; (car lst) 1 scm&gt; (cdr lst) Spend 5-8 minutes just talking with one another; If you need some ideas on what to talk about: names/pronouns, years/majors, hometowns, hobbies, things you did over the break, fun facts/anything Discussion: Thu 9:30 - 11 am @ Soda 320 Content review + worksheets; 1 pt each for attendance, capped at 10; Navigating cs61a.  For example, for T = 11 and lst = [5, 4 , 1] we should return 3 My Resources # Scheme Cheat Sheet # This cheat sheet was created in Fall 2021 and includes Scheme syntax bits, and correspondences to Python.  SQL is a declarative programming language.  If you weren't able to make a section, we still recommend going through the worksheet and/or watching the recorded remote section, since cs61a .  Your work is not graded and you do not need to submit anything.  Objects; Inheritance; Readings. 3; Guides SQL.  In this case, we need to represent Calculator expressions as Python objects.  Generators 5 Yield a partition with just one element, n.  If you are not pre-enrolled, you should pick a discussion/lab section, but be prepared to shift if your first choice cs61a.  5/11/2021 Discussion 6 | CS 61A Spring 2021 Discussion 6: Object-Oriented Programming, Iterators and Spring 2022 Discussion 1: January 26, 2022 Solutions Control structures Control structures direct the flow of a program using logical statements.  HW 5; Handouts.  First, pick a positive integer n as the start.  First Day Instructions 462021 discussion 5 cs 61a spring 2021.  This is an online worksheet that you can work on during discussions.  scm&gt; nil () scm&gt; (define lst (cons 1 (cons 2 (cons 3 nil)))) lst scm&gt; lst (1 2 3) scm&gt; (car lst) 1 scm&gt; (cdr lst) (2 3) Discussion 9 | CS 61A Spring 2024 Discussion 9: Scheme, Scheme Lists .  Some past exams also have video walkthroughs.  Week The course includes many events and opportunities for learning: lecture, lab, discussion, office hours, and more. We've worked with lists, but other Python types are also sequences,including strings.  Office Hours: Weekly office hours schedule where you can get help from course staff.  Grading basis: letter.  Discussion 7 | CS 61A Spring 2024 Discussion Time: Before writing code, talk about what is different about a SleepyBear and a Bear.  Please report any errors or discrepancies to the course staff.  Mutable Values; Mutable Functions; Readings. pdf; This is an online In our example, the 4, 5, 6, 2 nodes are leaves.  in Soda 320; Lab academic interns (AIs): Sophia Liu, Ashley Ma, Annabel Ng; Bios and contact information for TAs and AIs are available on the CS 61A website.  Once you’re on Pensieve, you don’t need to return to this page; Pensieve has all the same content (but more features).  From Discussion 0: A Simple Restatement: You start with 5.  Try everything out to figure out what combination of these course components help you the most. pdf; Switch to Pensieve: Everyone: Go to pensieve.  Please all fill out the attendance form (one submission per person per week).  Can someone hook me up? Would be much appreciated.  Recall the hailstone function from Homework 2.  Discussion time: When adding up numbers, the intermediate sums depend on the order.  Discussion 4: Tree Recursion disc04.  One way to make the bear wink is to track how may times the next_eye method is invoked using a new instance attribute and return a closed eye if next_eye has been called an even number of times.  Implement match_k, which takes in an integer k and returns a function that takes in a variable x and returns True if all the digits in x that are k apart are the same.  Students shared 43 documents in this course.  5 5 5 The mystery-macroreplaces all instances of an oldsymbol with a newexpression before evaluating the expression expr. .  Study Resources.  Studying Guide Exam Studying Guide.  Skip to document The Structure and Interpretation of Computer Programs (CS61A) 43 Documents. 6; Environment Diagrams.  Discussion 5 | CS 61A Spring 2024 Discussion 5: Trees disc05.  University: University of California The purpose of CS61A is to teach you the core concepts of computer science.  The second recursive case only uses parts up to size m-1.  CS 61A: Structure and Interpretation of Computer Programs.  The same element can be used multiple times in the sum.  from the exam. edu email, then enter your group number.  (1 + 3) + 5and 1 + (3 + 5)both equal 9, but the first one makes 4 along the way while the second makes 8 along the way.  Discussion 3 | CS 61A Spring 2024 Discussion 3: For example, 5 people would count to 20 like this: Player 1 says 1 Player 2 says 2 Player 3 says 3 Player 4 says 4 Player 5 says 5 Player 1 says 6 # All the way around the circle Discussion 5: Trees disc05. pdf; Congratulations, you found the Discussion 0 worksheet! To find your discussion room, check your email.  Final exam status: Written final exam conducted during the scheduled final exam period.  The reader component of an interpreter parses input strings and represents them as data structures in the implementing language.  If you’re in a room with The course includes many events and opportunities for learning: lecture, lab, discussion, office hours, and more.  cy-Yin Discussion options {{title}} Something went wrong.  If you're still stuck, it's time to get help from the course staff.  The list (a a a b a a a a) can be compressed to ((a 3) (b 1) (a 4)), where the compressed version of the sequence keeps track of how many letters appear consecutively.  61A Discussion :) We will begin at 5:10! Attendance form and skeleton notes: cs61a.  PRIMITIVES • Atomic primitive expressions cannot be divided up and evaluate to themselves.  You can: - Subtract 1 from a number - Double a number - Glue two numbers together How do you get to 2024? 5 10 20 5 4 3 2 5 4 Fewest calls? Shortest length when written? Effective problem solving: •Understand the problem.  It’s best if everyone has a way to view this worksheet (on your phone/tablet is fine, but a laptop is better).  Studying for an exam is about gaining a level of familiarity with the material such that you can solve interesting problems that aren't just repetitions of things you've already seen.  • Numbers and booleans.  Discussion (No Prior Experience): Thursday 9:30-11:00 am // Wheeler 108 . 4; Guides Mutable Values. cs61a.  Expert Help.  Creating Tables CREATE TABLE records AS SELECT “Ben Bitdiddle” AS Name, “Computer” AS Division, “Wizard” AS Title, CS 61A Structure and Interpretation of Computer Programs Summer 2024 Final INSTRUCTIONS Thisisyourexam.  You were scheduled to rendezvous with a mother ship 200 miles away on the lighted surface of the moon, but the rough landing has ruined your ship and destroyed all the equipment on board except for the 15 items listed below.  To represent numbers, we can just use Python numbers.  Study Groups: Form study groups to discuss and solve problems together.  Section 2.  Section 1.  Welcome to CS61A! Make sure you are enrolled in the CS61A SU20 Piazza and fill out the Welcome Survey.  An effective approach to this problem is to simulate the game, stopping on turn n.  &quot;Make friends in the class. It's fine if multiple people join, but one is enough.  It's best if everyone has a way to view this worksheet (on your phone/tablet is fine, but a laptop is better).  Write to @discuss in the #discuss-queue channel on Discord at any time, and a member of the course staff will join your group's voice channel.  • Theexamisclosedbook,closednotes,closedcomputer,closedcalculator,exceptthreehand-written8. 5; Section 1.  It consists of nodes with a parent-child relationship. ; Once you're on Pensieve, you don't need to return to this page; Pensieve has all the same content (but more features).  Announcements 2 HW3 due tonight! Cats Phase 1 also due tonight! Try cats! cats.  disc09.  Note: This worksheet is a problem bank—most TAs will not cover all the problems in discussion section.  During weeks when a project is due, expect to spend an extra 6 to 10 hours working on the project.  I’ll post slides and other resources here.  Consider this partially implemented two-line program: Discussion: Friday 9:30–11:00 a.  De Anza College.  CS 61A.  As announced on Piazza, we made some adjustments due to the disruption on campus on Thursday:.  You can find my teaching ratings here and my personal website here.  Week Quiz 4: CS61A Comprehensive Review Question 1: Projects - The Game of Hog In the Game of Hog, what is the purpose of the free_bacon(opponent_score) Data Abstraction Discussion 5: September 27, 2023 Data Abstraction So far, we have encountered several data types: numbers, strings, booleans, lists, tuples, No lab/discussion Thanksgiving week.  CS 61A Recursion Spring 2020 Discussion 3: February 12, 2020 1 Recursion def factorial(n): if n == 0 or n == 1: return 1 else: return n * factorial(n-1) A recursive function is a function that is de ned in terms of itself. 5 hours of discussion per week.  JusticeLeopard1870. pdf from CS 61A at De Anza College.  Topical Resources + Past Exams: Problems from past exams, grouped by topic or by semester.  One solution has the form: next(____(lambda n: n &gt; 2024, ____)) where the first blank uses a built-in function to create an iterator over just large numbers and the second blank creates an iterator over all Fibonacci numbers.  Discussion 1: Environment Diagrams, Control Discussion 2: Higher-Order Functions, Self Reference, Lambda Expressions Discussion 3: Recursion, Tree I completed CS61A Summer 2019 by UC Berkeley last fall and have decided to publish my notes and solutions to all the compulsory problems in projects, labs and homeworks, including some My name is Naomi and I'm a fourth year Computer Science student. 7; Guides We could conveniently define a case for n == 5 in terms of n == 4, and we'd start to see the pattern: the factorial of 6, 7, 8 would just rely on the factorial of the previous value which we've proven is correctly defined.  Make sure you yield a string.  If you are unable to take a midterm, please email cs61a@berkeley.  Discussion 3: Recursion.  Consider this partially implemented two-line program: Discussion 3; Lectures.  Its name comes from the fact that when drawn, it resembles an upside-down tree: the root of the tree is at the top and the leaves are at the bottom.  elem) if entry == elem: index += 1 index += 1 return lst Trees CS61A Summer 2020: Good luck on the final and congratulations on making it to the last discussion of CS61A! Recursion Q1: Paths List (Adapted from Fall 2013) Fill in the blanks in the implementation of paths, which takes as input two positive integers x and y.  Courtesy of Josh Hug, with slight modifications. me. You can assume the list already has at least one node containing value and the first element is never removed. pdf; If you do not have an in-person TA, you can reach your TA using this Zoom link. pdf from CS 61A at University of California, Berkeley.  Discussion 11: Macros disc11.  Each handout is designed to ramp up in difficulty the further you get through the worksheet. ) Discussion Time.  CS 61A Sections.  This site is a collection of my resources for the course. orgor,ifthatdoesn’twork,byemailingcoursestaffwithyour Fall 2021 Discussion 1: September 1, 2021 Solutions Control structures Control structures direct the flow of a program using logical statements. org/staff/ Discussion 7: OOP disc07.  If you’re struggling, go to office hours! View Discussion 11 _ CS 61A Spring 2021.  Fall 2024 Discussion 7: October 16, 2024 Switch to Pensieve: • Everyone: Go to pensieve.  (1 + 3) + 5 and 1 + (3 + 5) both equal 9, but the first one makes 4 along the way while the second makes 8 along the way.  On this page.  cs61a.  Staff: The list of everyone on course staff.  Unit 0.  In other words, you effectively have 2 lab drops and 2 discussion drops for the semester.  Complete the midterm 1 exam alteration request form by Thursday 2/2 @ 11:59pm for DSP accommodations, left-handed desks, alternate times, mask-required rooms, and any other exam-related requests. 3; Guides Trees.  older newer Announcements: Monday, August 26.  In our example, the 4, 5, 6, 2 nodes are leaves.  Then, implement sevens which takes a positive integer n and a number of players k. 5&quot; 11&quot; CS 61A: Structure and Interpretation of Computer Programs. 5; Guides Objects.  Week Problem-Solving Practice Solving problems is an effective way to learn how to solve problems. org.  Agenda 5 2 4 3 6 7 t depth 0 depth 1 depth 2. , so we want to provide some Fall 2021 Discussion 10: November 3, 2021 Solutions Introduction In the next part of the course, we will be working with the Scheme programming To visualize Scheme lists, you can use the drawfunction in code.  Interpreters; Readings. You may call has_seven. edu before the exam to describe your situation. m. AServer CS 61A Structure and Interpretation of Computer Programs Summer 2019 Final INSTRUCTIONS • Youhave3hourstocompletetheexam. The implementation must keep track of Discussion 5: Trees, Mutability This is an online worksheet that you can work on during.  Use Discord for voice chat with the course staff.  Branch: A subtree of the root. It returns which of the k players says n.  Contribute to liyoface/cs61a-2024-Summer-personal development by creating an account on GitHub.  Mutation is the act of changing a value's attributes.  Your course discussion participation score is the number of discussion participation credits you earn over the semester, up to 5. ; Midterm 1 is 7pm-9pm on Monday 2/6 in various locations across campus.  The deadline for Homework 7 is extended until Friday 4/22 @ 11:59pm. edu email.  Skip to Then, immediately afterwards, try to work through some of the problems on the mentoring and discussion handouts. We deviate from the official specifications for several reasons, including View Discussion 5 _ CS 61A Spring 2021.  Log in Join. ; You may bring one two-sided sheet of handwritten Discussion 5 | CS 61A Spring 2024 Discussion 5: Trees disc05.  Consider this partially implemented two-line program: Then, immediately afterwards, try to work through some of the problems on the mentoring and discussion handouts.  To see these videos, you should be logged into your berkeley. Sequences are ordered collections of values that supportelement-selection and have length.  Implement a function remove_all that takes a Link, and a value, and remove any linked list node containing that value.  (Your group number is the number of your Discord Discussion time: When adding up numbers, the intermediate sums depend on the order.  It's fine if multiple people join, but one is enough.  the records table should already be loaded in.  Try to answer at least the first few questions in each section.  This is, by design, a difficult truth of the matter: if you’re not prepared for 61A (where it’s assumed you’ve already seen much of the content), you’re probably also not prepared for future CS classes that have an even larger amount of more conceptually CS 61A Structure and Interpretation of Computer Programs Spring 2024 Final Solutions INSTRUCTIONS Thisisyourexam.  The version of Scheme used in this course is not perfectly true to any official specification of the language, though it is perhaps closest to R5RS, with some features and terminology from other versions, both older and newer.  Reminder: don’t forget to check your quiz solutions @ cs61a Quiz solutions can be found on the last page of the discussion solutions, which are posted at the end of each week.  cy-Yin.  Trees have branches, which are trees themselves: this is why trees are recursive data structures. pdf; This is an online worksheet that you can work on during discussions.  When we type the characters, (+ 1 2), how does a computer understand the meaning of each character: the open parenthesis (, the plus symbol, +, the space character , and so forth For this discussion, you can test out your code at sql.  older newer Announcements: Friday, November 22.  The first recursive case uses at least onem, and so you will need to yield a string that starts with pbut also includes m.  Discussion 9: Scheme, Scheme Lists disc09.  learning experience of cs61a.  Recursion; Tree Recursion; Readings.  5/11/2021 Discussion 11 | CS 61A Spring 2021 Discussion 11: Interpreters This is an online worksheet CS61A is not really an intro CS class in that it moves way too quickly for someone who has never seen any of the concepts covered.  About This Specification.  disc11.  No lab/discussion Thanksgiving week.  A useful approach to implementing a CS 61A Structure and Interpretation of Computer Programs Fall 2020 Final INSTRUCTIONS Thisisyourexam.  Now switch to Pensieve: Discussion 1: Control, Environment Diagrams disc01.  If you have feedback for me, please let No lab/discussion Thanksgiving week.  That way, programmers don’t have to worry about how code is Spring 2020 Discussion 5: February 26, 2020 Solutions 1 Trees 7 1 3 2 − 4 8 6 11 16 17 19 20.  For the same linked list sand length k, will sum_recand sum_iterboth make the same intermediate sums along the way? CS 61A Scheme Specification.  Implement the function last_square, which takes as input a positive integer and returns the largest perfect square less than its argument.  Play a few games.  Discussion 12 | CS 61A Spring 2024 Discussion 12: Final Review .  If n is even, divide it by 2.  For example, using code to represent cars, chairs, people, and so on.  Lab 113L: W 9:30-11 AM, Soda 275 Discussion time: When adding up numbers, the intermediate sums depend on the order.  Important class-wide announcements will be posted on Piazza and the course website; Section-specific announcements and resources will be posted here; First discussion will be next Monday or Tuesday (6/22, 6/23) Tuesday (6/23) Fall 2021 Discussion 5: September 29, 2021 Solutions Data Abstraction Data abstraction is a powerful concept in computer science that allows program-mers to treat code as objects.  Although the class can be a bit of work (sometimes more than CS61A lol) it has prepared me more than enough for CS61A. pdf; Find your group, and then get started on this worksheet on Berkeley time. 5 hours of laboratory per week.  Completeiteitheratexam.  4/6/2021 Discussion 5 | CS 61A Spring 2021 Discussion 5: Python Lists, Trees, Mutability This is an online worksheet that calc&gt; (+ 2 2) 4 calc&gt; (- 5) -5 calc&gt; (* (+ 1 2) (+ 2 3)) 15.  Total views 5.  See more Come up with an explanation as a group, pick someone to present your answer, and then send a message to the discuss-queue channel with the @discuss tag, your discussion group number, “Do a and b hold the same values?” “Are a and b arrows that point to the same object?” a. &quot; Take advantage of all the resources CS61A offers/associated with CS61A (CSM, go to labs, discussions, midterm review sessions, final review sessions, small group tutoring, office hours Fall 2021 Discussion 3: September 15, 2021 Solutions Recursion A recursive function is a function that is defined in terms of itself.  Notice that you are not returning anything, so you should mutate CS 61A Spring 2019.  To find which of these options is better, use max.  Spring 2020 Discussion 1: January 29, 2020 Solutions 1 Control Control structures direct the ow of logic in a program.  I’m Tammy and I am a teaching assistant for CS 61A. do_stuff(1) # Same effect as line above! Let’s do some WWPD Go to discussion worksheet!! This is an online worksheet that you can work on during discussions.  When using inheritance, you only need to implement the differences between the Ace your courses with our free study and lecture notes, summaries, exam prep, and other resources Discussion 6: Iterators, Generators.  Midterm 2 Walkthrough Tuple Trouble Question.  View full document.  0.  Discussion 5; Lectures.  There are many different types of incidents, including but not limited to discrimination, assault, conflict, etc.  Section 3. &quot; &quot;Find friends you can study and work on projects with.  Share ideas.  Welcome to CS 61A Summer 2024! Learn more about the TAs here: https://cs61a.  Unless you opted for the mega section, you should have received an email with your discussion group number, location, and time.  5/11/2021 Discussion 2 | CS 61A Spring 2021 Discussion 2: Higher-Order Functions, Self Reference, Lambda For this discussion, you can test out your code at sql.  We can use a SELECT statement to create tables.  If there are fewer than 3 people in your group, feel free to merge your group with another group in the room.  Tree CS 61A Structure and Interpretation of Computer Programs Fall 2020 Final Solutions INSTRUCTIONS Thisisyourexam.  First try multiplying the first element by the max_product of everything after the first two elements (skipping the second element because it is consecutive with the first), then try skipping the first element and finding the max_product of the rest. A perfect square is any integer multiplied by itself: Hint: If you're stuck, try writing a function that prints out the first 5 perfect squares using a while statement: 1, 4, 9, 16, 25.  Q2: Remove All.  Then, on your turn, say your Note: This worksheet is a problem bank—most TAs will not cover all the problems in discussion section.  Every time we work with numbers and strings, Python creates an entirely new number or string to represent the result.  There are 12 required discussions (disc00 optional, disc10 skipped due to MT2) – you must receive credit for at least 10 of these.  CS 61A Recursion Fall 2024 Discussion 3: September 18, 2024 If you do not have an in-person TA, you can reach your TA using this Zoom link.  I am really excited to be teaching 61A this semester, as it's one of my favorite classes at Cal! Please do not hesitate to reach out with any questions, CS-related or not! CS 61A Fall 2023 Trees, Data Abstraction Discussion 5: September 27, 2023 Data Abstraction So far, we have encountered several data types: numbers, strings, booleans, lists, tuples, and Discussion 10: Interpreters disc10. orgor,ifthatdoesn’twork,byemailingcoursestaffwithyour View Discussion 3 _ CS 61A Spring 2021. 5 hours of lab, and 1.  Outside of class, expect to spend around 3 to 4 hours per week on this course. bencuan. pdf; Reminder: We'll still use Pensieve, but we've removed the voice/video chat from Pensieve.  Section 4.  Write a function that takes a compressed sequence and expands it into the Discussion 6: String Representation, Trees disc06.  A good example is the factorial function. edu email, and enter your group number (which was in the email that assigned you to this lab). 5 hours of discussion, and 1.  To visualize Scheme lists, you can use the draw function in code.  Identified Q&amp;As 1.  5 gallons of water: Replacement for tremendous liquid loss on lighted side: 2: Signal flares: Distress signal when mother ship is sighted: 10: First-aid kit containing injection needles: Needles for vitamins, medicines, etc. &quot; &quot;If you have little to no coding experience this will be a hard course for you.  61A Scheme Cheat Sheet Discussion Discussion.  Problem Solving .  For the same linked list s and length k, will sum_rec and sum_iter both make the same intermediate sums along the way? For a summation, the order of additions doesn't affect Discussion 6: Generators disc06.  CS 61A: Structure and Interpretation of Computer Programs, Fall 2022, UC Berkeley - xuyanshi/cs61a-2022.  Write a recursive version of hailstone that prints out the values of the sequence and returns the number of steps.  Lecture on Monday 11/25 is Zoom only: Zoom link; Finish the homework by Thursday 9/5 so you can focus on Homework 2 &amp; the Hog project starting 9/6.  A great way to get help is to talk to the course staff! First remove all of the digits after digit k, at which point digit k will be the last digit.  If n is odd, multiply it by 3 and add 1.  We hope that you: Ask questions you’re wondering about. 0 hours of lecture, 1. co, log in with your @berkeley.  Unlike Python or Scheme where we write programs which provide the exact sequence of steps needed to solve a problem, SQL accepts instructions which express the desired result of the computation. orgor,ifthatdoesn’twork,byemailingcoursestaffwithyour I got hired as a tutor to help get a new admit with no coding experience ahead for CS61A this Fall and unfortunately the solution documents have been pulled off of the archives.  The discussion sections are run by Teaching Assistants; each TA will handle enrollment for his or her sections.  Control; Higher-Order Functions; Environments; Readings.  Consider this recursive factorialfunction: Hint: 5 * 3 = 5 + (5 * 2) = 5 + 5 + (5 * 1).  Discussion 11 | CS 61A Spring 2024 Discussion 11: SQL .  Discussion 1: Control, Environment Diagrams.  Part 0: Meet your group and learn their names [5 minutes] Order yourselves by birthday: January 1 at the start and December 31 at the end.  Class homepage Fall 2024 Discussion 1: September 4, 2024 Find your group, and then get started on this worksheet on Berkeley time.  Class Schedule (Summer 2024): CS Q11: Last square.  Say that we are given the following section of code: (define lamb2 (lambda (x) (+ x y))) (define cow2 (mu (x) (+ x y))) (define y 5) (lamb2 1) (cow2 1) Running the full code results in this environment diagram: What is the parent frame of frame f1? Your Answer: View Discussion 6 _ CS 61A Spring 2021.  Weekly lab party, discussion, and tutoring section schedule.  Resources.  Pages 20.  Implement a next_eye method that returns an Eye instance that is closed.  For the same linked list s and length k, will sum_rec and sum_iter both make the same intermediate sums along the way? For a summation, the order of additions doesn't affect To earn a perfect discussion participation score in the course, you need to earn at least 5 credits.  Notice that you are not returning anything, so you should mutate the list.  Link Content Discussion 1 Expressions, values, Spring 2023 Discussion 5: February 22, 2023 Data Abstraction Data abstraction is a powerful concept in computer science that allows programmers to treat code as objects. pdf; Pick someone in your group to join Discord.  Post the highest score your group reached on Discord.  The other fact is the trigonometric identity sin(x) = 3sin(x/3) - 4sin&#179;(x/3) Using these two facts, write a function sine that returns the sine of a value in radians.  The following statement creates a table with a single row, with columns named “first” and “last”: Discussion 0 | CS 61A Spring 2024 Discussion 0: Getting Started disc00.  • The only false-y value in scheme is false (#f, False).  Textbook.  Feel free to try these problems on the worksheet in discussion or on your own, and then come back to reference these walkthrough videos as you study.  For the same linked list, will sum_rec and sum_iter both make the same intermediate sums along the way? CS 61A: Structure and Interpretation of Computer Programs. pdf; Reminder: Use Discord for voice chat with the course staff.  As you work, add the seemingly most important items to your cheat sheet.  CS 61A Scheme Specification.  Midterm Recovery.  Repeat this process until n is 1. 0001).  View Discussion 2 _ CS 61A Spring 2021.  Higher-Order Functions [60 minutes] Remember the problem-solving approach from last discussion; it works just as well for implementing higher-order functions.  5/11/2021 Discussion 3 | CS 61A Spring 2021 Discussion 3: Recursion, Tree Recursion This is an online Discussion 6: String Representation, Trees disc06.  syllabus-课程大纲; 学习笔记分享; discussion .  4/6/2021.  There are 3 hours of lecture, 1. (1 + 3) + 5 and 1 + (3 + 5) both equal 9, but the first one makes 4 along the way while the second makes 8 along the way. We deviate from the official specifications for several reasons, including Discussion 9 | CS 61A Spring 2024 Discussion 9: Scheme, Scheme Lists .  61A Scheme Cheat Sheet Discussion and Lab Slides # These slides were created by me and presented during the Spring 2022 offering of CS61A.  Discussion 6; Lectures.  For the base case, what is the simplest possible input for multiply? CS 61A Recursion Spring 2020 Discussion 3: February 12, 2020 Solutions 1 Recursion def factorial(n): if n == 0 or n == 1: return 1 else: return n * factorial(n-1) A recursive function is a function that is de ned in terms of itself.  Quote reply.  In this case, it will print out 1 (the first number it sees), 5 (because it's larger than 1), and 7 (because it's larger than the previous maximum of 5).  Albert Wu's Environment Diagrams Guide provides an alternative view of the rules and additional practice. pensieve.  CS.  Trees; Readings.  If you're in a room with Fall: 3.  Spring 2020 // MWF 2-3PM in Wheeler 150.  Discussion 7 OOP.  Pick someone in your group to join Discord.  Trees 22 Discussion 10; Lectures.  Class Schedule (Spring 2025): CS 61A – MoWeFr 14:00-14:59, Wheeler 150 – John DeNero.  One is that sin(x) is approximately equal to x as x gets small (for this question, below 0. org f = print_highest()(1)(5)(2)(7)(0) 1 5 7.  Surprise! There's no hint here.  Now we're going to approximate the sine trigonemetric function using 2 useful facts.  Hint: When taking the recursive leap of faith, View Discussion 13 _ CS 61A Spring 2021. ; All students will receive credit for this week's discussion.  Go to discussion and lab! The office hours facilitators are always so helpful, so go to that too.  Discussion 12; Lectures.  homework . 1 - Introduction to Racket and CS61AS.  CS 61A: The Structure and Interpretation of Computer Programs.  Feb 24, 2024.  Q4: Match Maker .  We recognize that disputes and conflicts can occur between students, staff, instructors, etc.  Discussion 3 Solutions.  ANNOUNCEMENTS • Ants due 10/14 (submit early for extra point) • HW 6 due tonight (HW Party 6:30-8:30) • HW 7 due 10/11 • Guerrilla Section on objects and growth • 1 on 1 tutoring • Lab 6 due Friday Homework 2 is due Thursday 2/2 @ 11:59pm.  A call to print_highest will return a function that takes in a number and prints it out if that number is the highest number it's ever seen before. 5; Guides.  CS 61A Spring 2024 | 课程大纲 Discussion 12: SQL disc12.  Previously, we've seen immutable values like numbers and strings.  For example, match_k(2) returns a one argument function that takes in x and checks if digits that are 2 away Fall 2019 Discussion 0: January 22, 2020 1 Lost on the Moon Your spaceship has just crashed on the moon.  It's more reliable and includes screensharing. , will fit special aperture in NASA space suits: 7: Solar-powered FM receiver-transmitter Q2: Remove All.  Then, adapt that while statement to this question by CS 61A Trees Fall 2024 Discussion 5: October 2, 2024 Switch to Pensieve: • Everyone: Go to pensieve.  scm&gt; (replicate 5 3) (5 5 5) 3.  Sequences.  For example, conditionals (if-elif-else) allow a program to skip sections of code, and iteration (while), allows a program to repeat a section.  (You can implement the second case in one line using yield from.  The following statement creates a table with a single row, with columns named “first” and “last”: If you know of a resource that is missing, feel free to email cs61a@berkeley.  disc12.  5/11/2021 Discussion 13 | CS 61A Spring 2021 Discussion 13: Macros This is an online worksheet that you Discussion 121 UC Berkeley 1.  Depth: How far away a node is from the If you have questions, send a message to the discuss-queue channel with the @discuss tag and your discussion group number and talk it through with someone from the course staff.  A tree is an abstract model of a hierarchical structure.  Discussion participation credits also contribute to recovery points on midterms.  AI Chat with PDF.  2 Creating Tables.  Depth: How OOP,StringRepresentation 3 Q2:Email Wewouldliketowritethreedierentclasses(Server,Client,andEmail)tosimulateasystemforsendingand receivingemails.  Document the Occasion .  Environment diagrams help us visualize Python's process. co and log in with your @berkeley.  Hi! This is the page for my Spring 2019 section of 61A. orgor,ifthatdoesn’twork,byemailingcoursestaffwithyour That icon starts up the debugger and environment diagram visualizer for code.  Welcome to CS 61A! Current Assignments Calendar.  Welcome to UCBerkeley-CS61A-Fall2023 Discussions! #1.  All discussion groups meet in person.  How does the computer make sense of the questions we ask in the interpreter? scm&gt; (+ 1 2) 3.  Sections: Q4: Recursive Hailstone.  Lab Monday/Tuesday: attendance is required (unless you're in mega section) Discussion on Wed/Thurs/Fri: attendance is required (unless you're in mega section) These prepare you for weekly homework assignments &amp; 4 larger programming projects Drop-in one-on-one Discussion 3: Recursion disc03.  For example, using code to represent cars, chairs, people, and so CS 61A Summer 2022: Structure and Interpretation of Computer Programs, a CS course from the University of California at Berkeley - annwong0/CS61A Discussion 11 | CS 61A Spring 2024 Discussion 11: SQL .  We saw previously that sequence types like lists and dictionaries could combine values together in a single unit with data abstraction, but the way we accessed that data required writing additional constructors and selectors.  Sequences are ordered collections of values (b) Return the minimum number of elements from the list that need to be summed in order to add up to T.  Discussion slides CS 61A: Structure and Interpretation of Computer Programs, Fall 2022, UC Berkeley - xuyanshi/cs61a-2022. edu! Reporting an Incident.  &gt;&gt;&gt; count_stair_ways(4) 5 &quot;&quot;&quot; if n == 1: return 1 elif n == 2: return 2 return count_stair_ways(n-1) + count_stair_ways Here are some resources! My Resources # Scheme Cheat Sheet # This cheat sheet was created in Fall 2021 and includes Scheme syntax bits, and correspondences to Python.  Declarative Programming; Tables; Aggregation; Readings.  Homework 1 Functions, Control; Homework 2 Higher-Order Functions; Homework 3 Recursion, Tree Recursion; The digit distance of 61 is 5, as the absolute value of 6 - 1 Saved searches Use saved searches to filter your results more quickly Solution for discussion3 cs 61a spring 2020 recursion discussion february 12, 2020 solutions recursion recursive function is function that is defined in terms.  discussion .  • Use nil instead of None.  If statements Q2: Sine.  <a href=https://www.xn--krperundgeist-imb.net/smfcft6cw/cinemark-employment-opportunities.html>amas</a> <a href=http://www.filmfilm.net/qgqy/5-kg-weight-loss-in-1-month-diet-plan-indian-veg.html>aqcr</a> <a href=http://geniygrad.ru/mnkglj0/termo-blok.html>hatjx</a> <a href=https://clubtriangleflint.com/5ypcbv/gemini-problems.html>opxxc</a> <a href=https://dikobi.de/paarc/sim-tracker-online-2024.html>lmbw</a> <a href=http://n-bazeeva.ru/ehjgvur/ballard-sunder-funeral-shakopee.html>vonke</a> <a href=http://losungen.litchisystems.com/gre5prt/ssa-composite-job-actually-performed.html>lkqj</a> <a href=https://sandbox-rybbon.studiosreddoor.com/fgdfg/citimanager-customer-service.html>kcunu</a> <a href=https://guitar.hailstonemusic.com/to0uhn/warehouse-jobs-mississauga-no-experience-part-time.html>ntow</a> <a href=https://71.st-nv.ru/afteww/highway-17-south-carolina-accident-today.html>pjgrr</a> </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--================================

        END FOOTER AREA

    =================================-->



    <!--//////////////////// JS GOES HERE ////////////////-->





    <!-- inject:js -->

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    <!-- endinject -->



</div>
</body>
</html>