Uploaded August 2022 | Updated September 2026, 3 days ago
In this data structures video you will learn how to delete a node from an n-ary tree using C++. This is a tree in which each node can have more than 2 children. There are four unique cases, the node to be deleted either;
1) Is a leaf node,
2) Has one child,
3) Has many children and you want to promote all of the children.
4) Has many children and you want to promote only one of the children.
You will also learn how to use recursion to search for a node in an n-ary tree using Depth First Search (DFS).
Previous topics covered included deleting a node from a binary tree or binary search tree. This topic is slightly more advanced and is not asked on LeetCode. However, it is relevant to real world projects.
Resources:
~~MyCodeSchool: Deleting a node from a binary search tree: youtube.com/watch?v=gcULXE7ViZw
~~Creating an n-ary tree: youtube.com/watch?v=bADJ2IjFsWs
~~The code for printing a tree in 2D to the screen was taken from: geeksforgeeks.org/print-n-ary-tree-graphically
Thanks for watching!
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms
~~Website: vinayakd.com
~~Instagram: instagram.com/vinayak_desh
In this data structures video you will learn how to delete a node from an n-ary tree using C++. This is a tree in which each node can have more than 2 children. There are four unique cases, the node to be deleted either;
1) Is a leaf node,
2) Has one child,
3) Has many children and you want to promote all of the children.
4) Has many children and you want to promote only one of the children.
You will also learn how to use recursion to search for a node in an n-ary tree using Depth First Search (DFS).
Previous topics covered included deleting a node from a binary tree or binary search tree. This topic is slightly more advanced and is not asked on LeetCode. However, it is relevant to real world projects.
Resources:
~~MyCodeSchool: Deleting a node from a binary search tree: youtube.com/watch?v=gcULXE7ViZw
~~Creating an n-ary tree: youtube.com/watch?v=bADJ2IjFsWs
~~The code for printing a tree in 2D to the screen was taken from: geeksforgeeks.org/print-n-ary-tree-graphically
Thanks for watching!
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms
~~Website: vinayakd.com
~~Instagram: instagram.com/vinayak_desh


![How to Read and Use Joysticks in MATLAB and Simulink - Step-by-step detailed example!
#joysticks #flightsimulation
2020 Update: At 2:24, I mention that you cannot find the selector block within MATLAB / Simulink browser. I apologize for this. You can find the block, it is called Selector. So go in the Simulink Library Browser, drag the selector block, double click it, set the Input Port Size to 8 (this makes it compatible to work with joysticks). Leave the other parameters as is. You can then select the Index [1 2 3 4] as follows for attitude and thrust.
See this: https://www.mathworks.com/help/simulink/slref/selector.html
Free Udemy Course (Motion Planning): https://www.udemy.com/course/an-introduction-to-sampling-based-motion-planning-algorithms/
Dear Engineering students,
Welcome to my all new tutorial on using a basic USB joystick in MATLAB / Simulink. For this specific tutorial, you must have Simulink 3D Animation installed. However to use a joystick in general, you do not need 3D Animation.
This tutorial covers:
1) Setting up a simple USB joystick
2) Knowing which Simulink blocks use a joystick
3) Using the fundamental joystick controls (yaw, pitch, roll)
4) Mapping joystick axis motion to a CAD file within the VRML world.
5) Testing!!
Note: If you have no experience with Simulink 3D Animation, I highly recommend watch my previous videos explaining the following in more detail.
- VR Signal Expander
- Basic coordinates in Simulink 3D Animation
A lot of people I notice on MATLAB forums as well as YouTube, have difficulty knowing exactly how to import a joystick and map the joystick axes.
Stay tuned for upcoming videos:
- Importing ASSEMBLIES in VRML
- Joystick + PID control
Cheers,
Vin
Joystick used: Logitech Freedom 2.4 Cordless
How to use Simulink 3D Animation: https://www.youtube.com/watch?v 9d8jYzLpg
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
https://www.udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms/
Buy Coffee: https://buymeacoffee.com/vdengineering
My Instagram: https://www.instagram.com/vinayak_desh/
My Website: https://www.vinayakd.com/ How to Read and Use Joysticks in MATLAB and Simulink - Step-by-step detailed example!](https://i.ytimg.com/vi/A7KkciHn0jc/mqdefault.jpg)







