In this Channel, you can find Videos and Playlist related to DSA, Angular & Asp.NET Core /Framework/ WebApi, Bootstrap, HTML5 & CSS, ADFV2, Azure Devops, Synapse, Python, Pyspark, Data Engineering, Machine Learning and AI. Please subscribe to it to get regular notifications. Formerly Code M2.0
For 4th year CS projects and consultancy email me.
Email:
meetmbmodel@gmail.com
CodeNakshatra
π Access External Data in Azure Synapse Analytics π
Learn how to create and use external data sources in Azure Synapse to seamlessly connect with external storage like Azure Data Lake or Blob Storage.
Perfect for beginners and pros looking to optimize their data pipeline! π‘
πΊ Watch now: https://youtu.be/8taQQP-mSLY
#AzureSynapse #ExternalDataSource #DataEngineering #AzureDataLake #BigData #SynapseAnalytics #SQLonDemand
3 weeks ago | [YT] | 0
View 0 replies
CodeNakshatra
π Learn How to Find the Shortest Path in a Graph with Path Reconstruction! π
In this video, we use BFS + parent tracking to reconstruct the actual path from source to destination. Perfect for interviews and competitive programming! π‘
π Key Concepts Covered:
Adjacency list creation
BFS traversal
Parent mapping
Path reconstruction from destination to source
π Code Snippet (Python)
from collections import deque, defaultdict
def shortest_path(edges, n, m, s, t):
adj = defaultdict(list)
for u, v in edges:
adj[u].append(v)
adj[v].append(u)
visited = {}
parent = {}
q = deque([s])
visited[s] = True
parent[s] = -1
while q:
front = q.popleft()
for neighbor in adj[front]:
if not visited.get(neighbor, False):
visited[neighbor] = True
parent[neighbor] = front
q.append(neighbor)
ans = [t]
current_node = t
while current_node != s:
current_node = parent[current_node]
ans.append(current_node)
ans.reverse()
return ans
π― Ideal for: Beginners to Intermediate | Graph Theory | Interview Prep
π Drop your questions in the comments and donβt forget to like & subscribe!
π₯ Hashtags:
#GraphTheory #ShortestPath #BFS #PythonCode #CompetitiveProgramming #PathReconstruction #CodingInterview #DataStructures #Algorithms #Python #LearnToCode #OatsAurCode
1 month ago | [YT] | 1
View 0 replies
CodeNakshatra
π Understanding Cyclic Detection in Undirected Graphs π
One of the fundamental problems in graph theory is detecting cycles in an undirected graph. Whether you're dealing with complex networks, social connections, or any interconnected data, knowing how to identify cycles can be crucial for ensuring data integrity and avoiding potential pitfalls.
π Key Concepts:
Cyclic Graphs: These are graphs where you can start at one node and traverse through a series of edges to return to the same node.
Detection Techniques: Algorithms like Depth-First Search (DFS) are often used to detect cycles efficiently in undirected graphs.
Understanding how to implement and optimize these algorithms is essential for anyone working with graphs, whether in academic research or real-world applications.
β Questions for You:
Have you ever encountered challenges with cycle detection in your projects?
Would you find a detailed video on cyclic detection in undirected graphs helpful?
If you're interested in a video tutorial on this topic, let me know in the comments below! π
#GraphTheory #Algorithms #CyclicDetection #TechTalk #DataStructures #Programming
from collections import defaultdict, deque
def isCyclicBFS(src, visited, adj):
parent = {}
visited[src] = True
q = deque([src])
while q:
front = q.popleft()
for neighbour in adj[front]:
if visited[neighbour] and neighbour != parent.get(front, -1):
return True
elif not visited[neighbour]:
q.append(neighbour)
visited[neighbour] = True
parent[neighbour] = front
return False
def cycleDetection(edges, n, m):
# Create adjacency list
adj = defaultdict(list)
for i in range(m):
u = edges[i][0]
v = edges[i][1]
adj[u].append(v)
adj[v].append(u)
# To handle disconnected components
visited = {i: False for i in range(n)}
for i in range(n):
if not visited[i]:
if isCyclicBFS(i, visited, adj):
return "Yes"
return "No"
# Example usage:
edges = [[0, 1], [1, 2], [2, 0], [3, 4]]
n = 5 # Number of nodes
m = len(edges) # Number of edges
print(cycleDetection(edges, n, m)) # Example output: "Yes"
Explanation:
Adjacency List:
The adjacency list is built using defaultdict(list) in Python, which automatically handles the creation of a list for new keys.
Cycle Detection with BFS:
The isCyclicBFS function checks for a cycle starting from a source node src. It uses a queue (deque) for BFS and a parent dictionary to track the parent of each node during traversal.
If a visited neighbor is found that isn't the parent of the current node, a cycle is detected, and the function returns True.
Handling Disconnected Components:
The cycleDetection function iterates over all nodes, checking for cycles in each connected component. If a cycle is found in any component, it returns "Yes"; otherwise, it returns "No".
Example Output:
For the given edges [[0, 1], [1, 2], [2, 0], [3, 4]], the output is "Yes" because there is a cycle involving the nodes 0 -> 1 -> 2 -> 0.
9 months ago | [YT] | 0
View 0 replies
CodeNakshatra
React top loading bar in next js is a fashion now days but do you know how to use that in next js 14 with app router.
Routechangecomplete and routeChangeStart are no longer supported in next js 14, so how to add this functionality. Checkout the below video link for more.
Here is the video demonstration for that.
https://youtu.be/RAi0mei_zTs
1 year ago (edited) | [YT] | 1
View 0 replies
CodeNakshatra
Started Big data | Data Engineering Series. Checkout the playlist. What we are covering- Scala 3 and 2 , Spark, R, Pyspark,Hadoop,Hbase,Sql,Hive,Hql,Kafka,Airflow,Sql,Mysql etc.
youtube.com/playlist?list=PLP...
1 year ago | [YT] | 1
View 0 replies
CodeNakshatra
Which is your preferred choice for data engineering
1 year ago | [YT] | 2
View 1 reply
CodeNakshatra
All videos of sqoop are recorded just editing is pending. Tree and Array part of dsa series is still pending for editing. Recording scala tutorial for beginners and then also create databricks series again with scala and then with R as well. So, which series you want first
1 year ago | [YT] | 4
View 0 replies
CodeNakshatra
Bit confused. What to do? Was thinking to start basic data engineering series
1 year ago | [YT] | 6
View 6 replies
CodeNakshatra
What I should do now?
1 year ago | [YT] | 6
View 5 replies
CodeNakshatra
Hadoop not running Fix-
Open Terminal and run below commands
stop-all.sh
hadoop namenode -format
start-all.sh
Comment below for a video on this topics. Follow us to find fix of the issues which are not solved. Do like and share.
#hadoop #modelcoding #hadooptraining #bigdata #bigdatatutorialforbeginners #dataengineering #dataengineeringessentials #python #linux
2 years ago (edited) | [YT] | 7
View 5 replies
Load more