Top Tweets for #warshal
study log [210326]
I took an exam this morning. I think I cooked.
• Graph Theory: Floyd warshall algorithm on Python, OOP, methods, ...
• Mathematics for ML : Hessian, Error, gradient descent, ...
#studytwt
![ThomasM_Acct's tweet photo. study log [210326]
I took an exam this morning. I think I cooked.
• Graph Theory: Floyd warshall algorithm on Python, OOP, methods, ...
• Mathematics for ML : Hessian, Error, gradient descent, ...
#studytwt https://t.co/nSXwGVkZh3](https://pbs.twimg.com/media/HD9leqVawAAdnIW.jpg)
@SakshamManav25 @takeUforward_ @striver_79 Floyd-Warshall is super useful for all-pairs shortest paths. The city threshold problem is a nice application. Keep going strong.
Part 4 completed.
Learned about the Floyd-Warshall algorithm and solved the problem based on it: Find the City With the Smallest Number of Neighbors at a Threshold Distance.

🇮🇳 Leetcode POTD
> Streak 883🔥
> Approach : DP + Floyd Warshall Algo
> Difficulty: Hard
Very good q combining different concepts, typical Interview question
Even I had to see hints to solve
#ProblemSolving #BuildInPublic #DSA

🇮🇳 Leetcode POTD
> Streak 882
> Approach : Floyd Warshall Algo
> Difficulty: Medium
Straight forward question
#ProblemSolving #BuildInPublic #DSA

@ShahzaibRiaz20 Failed Warshal
Reading this article sparked a memory
I once built a routing engine to find the Shortest + Safest path.
The secret sauce?
Floyd-Warshall for the path.
Naive Bayes to predict accident probability.
Optimizing for safety, not just speed. 🛡️
Ref:-
https://t.co/983YOw9cIE
Today we present new research establishing hard-braking events (HBEs) as a high-density "leading" indicator of road segment crash risk. This suggests HBEs could help identify high-risk road segments & inform specific infrastructure interventions. → https://t.co/3avEESOv3p
#GoogleResearch #RoadSafety #MobilityAI

Learning Warshall's theorem is one of the better feelings while studying Discrete Mathematics!

Day 39 of hashtag#100DaysOfDSA - Floyd–Warshall Algorithm
I studied the Floyd–Warshall algorithm, a powerful solution for the all-pairs shortest path problem.
What I learned:
It computes the shortest paths between every pair of vertices.
Thread.

@neuralpat Longest path, Transitive closure, Matrix multiplication Graph theory Algorithms - Single-source shortest paths, Dijkstra's algorithm, Bellman-Ford algorithm, All-pairs shortest paths, Floyd–Warshall algorithm, Minimum cost spanning trees, Prim's algorithm, Kruskal's algorithm
November 15th:
>Studied Graph - Djikstra, Bellman Ford and Floyd Warshal Algorithms.
Deeply dry run them.
Had a Good Day.
Good Night! 🦚
🎯 Top 20 Algorithms For Coding Interviews 🎉
Are you preparing for coding interviews?
Here’s a list of the 20 most important algorithms you must master to ace your interviews!
👉 Searching & Sorting Algorithms
• Examples: Binary Search, Merge Sort, Quick Sort
• 🔍 Foundation of efficient data retrieval and ordering
👉 Graph Algorithms
• Examples: Dijkstra's, Bellman-Ford, Kruskal's
• 🌐 Crucial for network analysis, routing, and resource allocation
👉 Dynamic Programming
• Examples: Knapsack Problem, Kadane’s Algorithm
• 🧠 Key for solving problems recursively and optimizing solutions
👉 String Manipulation
• Example: KMP Algorithm
• 🔤 Pattern recognition and efficient text processing
👉 Hashing Algorithms
• Examples: RSA Algorithm, Hashing Techniques
• 🔐 Critical for fast data retrieval and secure transmission
👉 Tree Traversal Algorithms
• Examples: Inorder, Preorder, Postorder
• 🌳 Essential for navigating hierarchical data structures
👉 Backtracking Algorithms
• Examples: N-Queens Problem, Subset Sum
• 🔁 Solve complex problems by exploring all possibilities
👉 Greedy Algorithms
• Examples: Huffman Coding, Activity Selection
• ⚡ Choose the most optimal solution at each step
👉 Divide & Conquer Algorithms
• Examples: Merge Sort, Quick Sort
• ⚔️ Break problems into smaller subproblems for faster solutions
👉 Bit Manipulation
• Example: Checking if a number is a power of 2
• ⚙️ Useful for solving problems involving binary data
👉 Union-Find Algorithms
• Examples: Disjoint Set Union, Path Compression
• 🔗 Solve connectivity problems in graphs efficiently
👉 Floyd-Warshall Algorithm
• 🌍 Find the shortest path between all pairs of vertices
👉 Topological Sort
• 🎯 Sort directed acyclic graphs for dependency resolution
👉 Heap Algorithms
• Examples: Heap Sort, Priority Queue
• ⛰️ Optimal for implementing priority-based scheduling
👉 Two-Pointer Techniques
• Examples: Finding a pair with a given sum
• Efficient for solving problems on sorted arrays
👉 Sliding Window Algorithms
• Example: Maximum sum of k consecutive elements
• 🪟 Great for solving range-based problems efficiently
👉 Breadth-First Search (BFS)
• 🛤️ Explores all neighbor nodes at the current depth first
👉 Depth-First Search (DFS)
• 🕵️ Explores as far as possible along each branch before backtracking
👉 Matrix Exponentiation
• 🧮 Solve problems involving linear recurrence relations efficiently
👉 Number Theory Algorithms
• Examples: GCD, Sieve of Eratosthenes
• 🧠 Fundamental for problems involving prime numbers and divisibility

Top 10 algorithms used in development:
1. Binary Search
2. Merge Sort
3. Quick Sort
4. Breadth-First/Depth-First Search
5. Dijkstra Shortest Path
6. Floyd-Warshall All-Source Shortest Path
7. Dynamic Programming (Knapsack)
8. Union-Find
9. Topological Sort
10. KMP String Matching
Floyd Warshall Algorithm
Finds shortest paths between all pairs of nodes, handling negative edges. Multi source shortest path algorithm that goes via every node using formula,
cost[i][j] = min(cost[i][j], cost[i][k] + cost[k][j])
Uses three nested loops iterating through intermediate nodes (k), source nodes (i) and destination nodes (j). Builds cost matrix by considering paths through each node sequentially
Time: O(V³), Space: O(V²)
Detects negative cycles, if cost[i][i] < 0 for any node, negative cycle exists
![d4rsh_tw's tweet photo. Floyd Warshall Algorithm
Finds shortest paths between all pairs of nodes, handling negative edges. Multi source shortest path algorithm that goes via every node using formula,
cost[i][j] = min(cost[i][j], cost[i][k] + cost[k][j])
Uses three nested loops iterating through intermediate nodes (k), source nodes (i) and destination nodes (j). Builds cost matrix by considering paths through each node sequentially
Time: O(V³), Space: O(V²)
Detects negative cycles, if cost[i][i] < 0 for any node, negative cycle exists](https://pbs.twimg.com/media/G2T9FhlXoAAvSj5.jpg)
DAY 42
College ⭕
Gym ⭕
DS (1 hrs) ✅
>Brushed up on the Floyd Warshall algorithm in graph theory
>Did a lecture on transposes, permutations and space R^n in linear algebra (MIT 18.06 - Gilbert Strang)
>Studied for the Digital Image Processing mid sem exam
>Completed some lectures from CampusX, I'll make notes tomorrow
@ShivamK75854391 @rrrautela @Tiku_RM @mahanot_dikshit @RazM143 @_Rishabh_Code @raydotsh @mulitet4 @MayaNoonma98854 @ThakurAbhay342 @BhavyaGoyal__ @SumitM_X @AmanSharma_554 Do bit manipulation and binary search too, not personal exp but my seniors were asked from those topics
Also learn algos like dijkstra, Floyd warshals, bfs dfs, sieve, etc...
All the best for the OA man, Godspeed!
@ujjwalkumar1108 @striver_79 @takeUforward_ @LeetCode @geeksforgeeks That’s a tough one! I remember when Floyd-Warshall clicked for me. What’s your biggest hurdle with it right now?
✅ DSA Day 62
Taking on a new shortest path algorithm today! 🧠
📚 G-42: Floyd Warshall Algorithm
Learning to find all-pairs shortest paths!

Most Popular Users

Elon Musk 
@elonmusk
239.7M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers





















