PyTech Vision
PyTech Vision
  • Видео 16
  • Просмотров 207 715
Estimating Pi with Python: Monte Carlo Method
how to estimate the value of pi using the Monte Carlo method in Python! In this tutorial, we’ll walk through a simple Python code that generates random points, calculates the ratio of points inside a circle to total points, and uses this ratio to approximate pi. This hands-on example is perfect for beginners and a great way to understand the power of Monte Carlo simulations. Don’t forget to like, comment, and subscribe for more Python tutorials and coding tips!"
Просмотров: 253

Видео

3.1 Detect cycle in a Graph using DFS | Python
Просмотров 12 тыс.4 года назад
3 DFS : Detect cycle in a Graph | Python Detect cycle in a Graph for directed and Un directed graph using DFS, Also the solution is implemented in Python, this video is in continuation with last video of DFS, to show the application. #datastructures #Graph Traversal #DFS Chapters : 0:00 Introduction 0:45 Detect Cycle in Directed Graph 3:41 Detect Cycle in Undirected Graph 6:34 Python Implementa...
3. DFS: Depth First Search Implementation in Python | Graph Data Structure
Просмотров 44 тыс.4 года назад
Depth First Search Implementation (DFS) in Python, The time complexity for DFS if O(|V| |E|), where |V|, |E| are the no of vertices and Edges in the graph respectively. Explore a graph using DFS traversal, Complete Algorithm of DFS including visiting and finished time tracking of vertices during DFS. Author: Shahrukh Khan Links Blog: pytech-solution.blogspot.com/ #datastructures #Graph Traversa...
Social Distance Monitoring App Demo | AI | Computer Vision | Video Analytics | YOLO | Python
Просмотров 2,7 тыс.4 года назад
Create a Demo App for monitoring the social distancing using Camera feed and applying Machine Learning(AI) and Image Processing on input. We have used "YOLO v2" for person detection and then applied post-processing to identify person not following social distancing. Author: Shahrukh Khan References and Links: Source Code github : github.com/sk1210/Social-Distance-Monitoring Yolo : pjreddie.com/...
Valid Perfect Square #367 | LeetCode | Python | Binary Search
Просмотров 3084 года назад
Valid Perfect Square ( LeetCode) solved using O(n) and then O(log n) time complexity in Python This question is very commonly asked in Programming Interview of Amazon and Adobe. #LeetCode Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
Check If It Is a Straight Line #1232 | LeetCode |
Просмотров 7274 года назад
You are given an array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight line in the XY plane. This question is very commonly asked in Programming Interview. #LeetCode Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
Majority Element #169 | LeetCode | Moore voting Algorithm | Python
Просмотров 2924 года назад
Majority Element in a list/array (LeetCode) solved using Moore voting algorithm. This question is very commonly asked in Programming Interview. Moore Majority Algorithm : en.wikipedia.org/wiki/Boyer–Moore_majority_vote_algorithm #LeetCode #dsalgo #python #dynamicprogramming #ProblemSolving Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
Number Complement #476 | LeetCode | May LeetCoding Challenge
Просмотров 1234 года назад
Number Complement (LeetCode) solution, this problem is posted as Day 4 problem of May LeetCoding Challenge on LeetCode. This question is very commonly asked in Programming Interview. #LeetCode #ProblemSolving #Number Complement Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
Ransom Note #383| Leetcode | May LeetCoding Challenge
Просмотров 1724 года назад
Ransom Note (LeetCode) solution, this problem is posted as Day 3 problem of May LeetCoding Challenge on LeetCode. Explained the algorithm with O(n m) complexity. This question is very commonly asked in Programming Interview. #LeetCode #ProblemSolving Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
Jewels and Stones #771| Leetcode | May LeetCoding Challenge
Просмотров 994 года назад
Jewels and Stones (LeetCode) solution, this problem is posted as Day 2 problem of May LeetCoding Challenge on LeetCode. Explained the algorithm with O(n m) complexity. This question is very commonly asked in Programming Interview. #LeetCode #ProblemSolving Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
First Bad Version #278 | Leetcode | May LeetCoding Challenge
Просмотров 4454 года назад
First Bad Version (LeetCode) solution, this problem is posted as Day 1 problem of May LeetCoding Challenge on LeetCode. Explained the algorithm with log(n) complexity. The same problem can also be re framed as finding occurrence of first '1' in sorted array consisting of '0' and '1' only. This question is very commonly asked in Programming Interview. #LeetCode #ProblemSolving Author : Shahrukh ...
Minimum Path Sum Python | LeetCode | Problem Solving
Просмотров 7194 года назад
Minimum Path Sum Python | LeetCode | Problem Solving Calculate Minimum Path Sum on a given grid from top left to bottom right corner of grid. Explained the algorithm and implemented the solution in Python using dynamic programming. #dynamicProgramming Author : Shahrukh Khan Links Blog : pytech-solution.blogspot.com/
2. BFS : Breadth First Search ( Complete Algorithm in depth) | Graph Traversal | Data Structure
Просмотров 10 тыс.4 года назад
BFS : Breadth First Search ( Complete Algorithm in depth) | Graph Traversal | Data Structure In this video I have explained the Graph Traversal using BFS (Breadth First Search Approach), and then explained how we can find shortest distance and shortest path of all nodes from source node using BFS. I have also covered the implementation of BFS in Python in next video BFS Implementation in python...
2.1 BFS: Breadth First Search Implementation in Python | Graph Data Structure
Просмотров 90 тыс.4 года назад
Breadth First Search Implementation in Python, Finding shortest distance and path of any node from source node in a Graph. BFS BFS python
1. Introduction to Graph Data Structure | Graph Data Structure
Просмотров 4,4 тыс.5 лет назад
Introduction to Graph Data Structure Explained the following topics: Nodes, Edge Directed / Un-directed Graph Weighted Graph Adjacency List and Adjacency Matrix Representation
Adjacency List Implementation in Python | Graph Data Structure
Просмотров 41 тыс.5 лет назад
Adjacency List Implementation in Python | Graph Data Structure

Комментарии

  • @swarakasera9992
    @swarakasera9992 Месяц назад

    Thanks for this easy explanation 😊

  • @VivekSinghdiscretion
    @VivekSinghdiscretion 4 месяца назад

    Amazing sir, you explained well 👍

  • @riazalam8236
    @riazalam8236 4 месяца назад

    Good Explanation

  • @poojagiri9884
    @poojagiri9884 4 месяца назад

    Nice Explanation

  • @uttarakhandwala8745
    @uttarakhandwala8745 4 месяца назад

    Super method

  • @rickey1807
    @rickey1807 5 месяцев назад

    finally found BFS implementation in python without OOPs. Grateful!✌

  • @anuKhan-s6g
    @anuKhan-s6g 7 месяцев назад

    sir ye code kysy mil skta?

  • @thekrat0s215
    @thekrat0s215 10 месяцев назад

    Thanks men, best structured video on this Adjacency list Implementation in python

  • @GoNguyen-i3k
    @GoNguyen-i3k Год назад

    parent[v] = u; what that line do? I don't understand???

  • @GoNguyen-i3k
    @GoNguyen-i3k Год назад

    Bro you're fucking good

  • @dcdb723
    @dcdb723 Год назад

    hold on, is_directed=false means not directed, not is_directed means true and directed right?why do you need to append 'u' if it's directed?

  • @sanskritibansal-t1x
    @sanskritibansal-t1x Год назад

    Trust me, This is the best implementation of graph available till date 07-10-23. Thanks a lott mann

  • @parshuram3272
    @parshuram3272 Год назад

    u make it so easy mannn..dammn good..

  • @patriciaasiimire5490
    @patriciaasiimire5490 Год назад

    dfs_util("A") print(dfs_traversal_output) are giving me a type error 'dict is not callable'

  • @kundrapumanju8376
    @kundrapumanju8376 Год назад

    nice bro, A very good explanation.

  • @mustafahussain3502
    @mustafahussain3502 Год назад

    Sir Allah apko aur apke family ko mahfooz rakhay aur apko jannat mein jagah de. Inshallah

  • @fmitesh007
    @fmitesh007 Год назад

    great work easy explanation

  • @enochcentralfootball2140
    @enochcentralfootball2140 Год назад

    why is the parent set to none?

  • @enochcentralfootball2140
    @enochcentralfootball2140 Год назад

    why is the level set to -1?

  • @pranjalbharti8037
    @pranjalbharti8037 2 года назад

    Please upload more videos on graphs, your way of explanation is outstanding 🥰.

  • @ddremer6909
    @ddremer6909 2 года назад

    What software are you using?

  • @ddremer6909
    @ddremer6909 2 года назад

    Thank You So Much Brother. 😇

  • @tooniatoonia2830
    @tooniatoonia2830 2 года назад

    Nice explanation! What if the graph is given as an adjacency matrix instead?

  • @saiprasad2525
    @saiprasad2525 2 года назад

    Very nice explanation what is time complexity is it O(E) and space O(V+E^2)

  • @BANDLAHYNDAVIBCE
    @BANDLAHYNDAVIBCE 2 года назад

    what we need to do if the path is not closed one

  • @hasnainsohail2301
    @hasnainsohail2301 2 года назад

    kindly upload the code on git

  • @AshutoshKumar-lp5xl
    @AshutoshKumar-lp5xl 2 года назад

    bahut tagda....!!!!!!

  • @akashThe99
    @akashThe99 2 года назад

    Deep explanation 🔥 this is what I've been looking for since 4 days 😂 Thanks man 👍🏻

  • @xlr8919
    @xlr8919 2 года назад

    Thank you sir. You explain very well, please make more videos on other topics in python.

  • @Loneghost108
    @Loneghost108 2 года назад

    Which ide is this

  • @NishanPnab
    @NishanPnab 2 года назад

    Very simple explanantion without over complicationg things. Thanks a lot for the video.

  • @bijayamanandhar3890
    @bijayamanandhar3890 2 года назад

    Hello everybody, I feel learning to code can be simpler using a software like in this video .I am very much interested to know what is the best software that can be used to record videos and learn a better and faster way.

  • @emeemmanuel9250
    @emeemmanuel9250 2 года назад

    Bro nice work, why don't you upload more videos??

  • @ravindrav1895
    @ravindrav1895 2 года назад

    Awesome video, I saw many videos but this is the best one , Thank you so much

  • @hamzahamr2284
    @hamzahamr2284 2 года назад

    brother I wished you have explained MinMax Algo, A*, Alpha-Beta and Bayseain because your explanation are the best.

  • @abhishekjain3676
    @abhishekjain3676 2 года назад

    bro, this code works perfectly fine for a non cyclic graph. But when it comes to cyclic, the visited vertex has one or more duplicates. Also can we apply bfs for cyclic graphs also.

  • @LogicWise
    @LogicWise 2 года назад

    Sir please make videos on Algorithms liks bactracking greedy algorithm etc

  • @annepuvijay3743
    @annepuvijay3743 2 года назад

    Excellent Explanation... You will live on in this video forever.... 👏

  • @nkunam
    @nkunam 2 года назад

    Best video man. Absolutely loved the way you explained.

  • @vaidehisawant5274
    @vaidehisawant5274 2 года назад

    getting an error in the if not visited[v] as bool object not subscriptible pls help

  • @overspiced2284
    @overspiced2284 2 года назад

    if there is multiple paths to a node with the same level, e.g. 1 to 4 where: 1: 2, 3 2: 1, 4 3: 1, 4 4: 2, 3 how can we choose the path where the answer is smallest, i.e. 1 2 4

  • @beleza9753
    @beleza9753 2 года назад

    adj_list ={} for i in range(9): j,k = input().split() adj_list[j]= adj_list.get(j,[]) + [k] adj_list[k]= adj_list.get(k,[]) + [j] print(adj_list) A B A D B C D E D F E F E G F H G H

  • @learnwithsudhiv4836
    @learnwithsudhiv4836 2 года назад

    Sir do you have python code for 8 puzzle problem. Could you please share

    • @PyTechVision
      @PyTechVision 2 года назад

      Sorry, I don't have code for that.

    • @learnwithsudhiv4836
      @learnwithsudhiv4836 2 года назад

      @@PyTechVision ok sir. Thank you. If possible could you please try

  • @kanchidoshi6907
    @kanchidoshi6907 2 года назад

    For stack, does it have to be directed graph example only?

  • @terzon2644
    @terzon2644 2 года назад

    Thx a lot. Helped me with my assignment.

  • @nehakhan7447
    @nehakhan7447 2 года назад

    Amazing video sir 😊🤩

  • @optimistichomosapien7484
    @optimistichomosapien7484 2 года назад

    Great explanation..

  • @kishlaykumar2305
    @kishlaykumar2305 2 года назад

    Thanx man!...the way u taught...was amazing ...also much simplified 😍🙏👍