Formal languages | Recursion

Left recursion

In the formal language theory of computer science, left recursion is a special case of recursion where a string is recognized as part of a language by the fact that it decomposes into a string from that same language (on the left) and a suffix (on the right). For instance, can be recognized as a sum because it can be broken into , also a sum, and , a suitable suffix. In terms of context-free grammar, a nonterminal is left-recursive if the leftmost symbol in one of its productions is itself (in the case of direct left recursion) or can be made itself by some sequence of substitutions (in the case of indirect left recursion). (Wikipedia).

Left recursion
Video thumbnail

Recursive Factorial Function

Introduction to recursion.

From playlist Computer Science

Video thumbnail

Evaluating Recurrence Relations (1 of 4: When do you apply Recurrence Relations?)

More resources available at www.misterwootube.com

From playlist Further Integration

Video thumbnail

Sequences: Introduction to Solving Recurrence Relations

This video introduces solving recurrence relations by the methods of inspection, telescoping, and characteristic root technique. mathispower4u.com

From playlist Sequences (Discrete Math)

Video thumbnail

Recurrence Relation Solution - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

A Beginner's Guide to Recursion

Recursion has an intimidating reputation for being the advanced skill of coding sorcerers. But in this tutorial we look behind the curtain of this formidable technique to discover the simple ideas under it. Through live coding demos in the interactive shell, we'll answer the following que

From playlist Software Development

Video thumbnail

Recursion Replacement - Intro to Algorithms

This video is part of an online course, Intro to Algorithms. Check out the course here: https://www.udacity.com/course/cs215.

From playlist Introduction to Algorithms

Video thumbnail

Systems of Quadratic Equations

This video tutorial explains how to solve a system of two quadratic equations by substitution and by graphing.

From playlist New Algebra Playlist

Video thumbnail

Lecture 9 | Programming Abstractions (Stanford)

Lecture 9 by Julie Zelenski for the Programming Abstractions Course (CS106B) in the Stanford Computer Science Department. Julie goes over recursion and the proper ways to solve problems recursively. She continues with the example of a program that draws a fractal image and explains a Ma

From playlist Lecture Collection | Programming Abstractions

Video thumbnail

Binary tree traversal: Preorder, Inorder, Postorder

See complete series on data structures here: http://www.youtube.com/playlist?list=PL2_aWCzGMAwI3W_JlcBbtYTwiQSsOTa6P In this lesson, we have described Preorder, Inorder and Postorder algorithms for binary tree traversal and analyzed their time and space complexities. See source code her

From playlist Data structures

Video thumbnail

Searching and Sorting Algorithms (part 3 of 4)

Introductory coverage of basic searching and sorting algorithms, as well as a rudimentary overview of Big-O algorithm analysis. Part of a larger series teaching programming at http://codeschool.org

From playlist Searching and Sorting Algorithms

Video thumbnail

Lecture 10 | Programming Abstractions (Stanford)

Lecture 10 by Julie Zelenski for the Programming Abstractions Course (CS106B) in the Stanford Computer Science Department. Julie explains procedural recursion and introduces permute code. She goes through another example of recursive code line by line, explaining each component. Recur

From playlist Lecture Collection | Programming Abstractions

Video thumbnail

Coding Challenge #77: Recursion

In this coding challenge, I explore the concept of recursion to create fractal patterns in JavaScript HTML5 canvas with the p5.js library. 💻Challenge: https://thecodingtrain.com/CodingChallenges/077-recursion.html Links discussed in this video: 🔗Benoit Mandlebrot's The Fractal Geometry o

From playlist Coding Challenges

Video thumbnail

Huffman Encoding! (Day 5)

Alright, didn't get as far as I wanted, but we got something up and running. -- Watch live at https://www.twitch.tv/simuleios

From playlist Huffman forest

Video thumbnail

Turing Machines

Theory of Computation 12. Turing Machines ADUni

From playlist [Shai Simonson]Theory of Computation

Related pages

Parser combinator | Witness (mathematics) | Terminal and nonterminal symbols | Ambiguous grammar | Recursive descent parser | Parsing | Context-free grammar | Rewriting | Polynomial | Formal grammar | LL parser | Parse tree | Top-down parsing | LALR parser | Bottom-up parsing | Tail recursion | Empty string | CYK algorithm | Recursion (computer science)