What is graph in data structure in hindi
Graph เคเค non-primitive, Non-Linear Data structure เคนोเคคा เคนै।
Graph เคเค vertex(node) เคा เคธเคฎूเคน เคนोเคคा เคนै। เคเค vertex เคฆूเคธเคฐे vertex เคे เคธाเคฅ Connected เคฐเคนเคคा เคนै เคเคฐ เคฆो vertex เคे เคฎเคง्เคฏ connection เคो เคนเคฎ edge เคเคนเคคे เคนै। Edge เคฆो nodes เคे เคฎเคง्เคฏ เคเค Communication Link เคी เคคเคฐเคน work เคเคฐเคคा เคนै।
Graph (V,E) เคा Group เคนोเคคा เคนै เคเคนाँ V, vertex เคा Group เคนोเคคा เคนै เคเคฐ E, Edge เคा Group เคนोเคคा เคนै।
เคเค graph เคो vertices (Nodes) เคเคฐ edges เคे เคธเคฎूเคน เคे เคฐूเคช เคฎें Define เคिเคฏा เคा เคธเคเคคा เคนै เคो เคเคจ vertices เคो connect เคเคฐเคจे เคे เคฒिเค Use เคिเคฏा เคाเคคा เคนै।
เคเค graph เคो cyclic tree เคे Form เคฎें เคฆेเคा เคा เคธเคเคคा เคนै, เคเคนां vertices(Nodes) parent child Relation เคฐเคเคจे เคे เคฌเคाเคฏ เคเคจเคे เคฌीเค เคिเคธी เคญी complex Relation เคो เคฌเคจाเค เคฐเคเคคे เคนैं।
types of graph in data structure in hindi
Data Structure เคฎें graph เคे เคช्เคฐเคाเคฐ เคจिเคฎ्เคจเคฒिเคिเคค เคนोเคคे เคนै
- Directed graph
- Undirected graph
- Weighted graph and non-weighted graph
Directed graph
เคिเคธ Graph เคฎें edges เคी เคोเค direction เคนोเคคी เคนै, directed Graph เคเคนเคฒाเคคा เคนै। เคเคฐ เคเคธ เคช्เคฐเคाเคฐ เคे edges เคो directed edges เคเคนเคคे เคนै। Directed edges เคो acres เคญी เคเคนเคคे เคนै।
Graph เคฎें edges เคो เคเค line เคे through เคฆเคฐ्เคถाเคฏा เคाเคคा เคนै เคเคฐ เคฏเคฆि each line เคฎें arrow เคा symbol เคฌเคจा เคนुเค เคนोเคคा เคนै เคคो เคตเคน directed Graph เคเคนเคฒाเคคा เคนै , Directed graph เคो diagraph เคญी เคเคนा เคाเคคा เคนै।
Undirected graph
เคตเคน Graph เคिเคธเคฎें edges เคी Direction เคจเคนी เคนोเคคी เคนै เค เคฐ्เคฅाเคค เคเคธเคฎें arrow เคा Symbol เคจเคนी เคฌเคจा เคนुเค เคนोเคคा เคนै। Undirected graph เคเคนเคฒाเคคा เคนै।
Weighted graph and non-weighted graph
เคเคญी-เคเคญी graphs เคฎें edges เคนोเคคे เคนै เคตे weight เคो carry เคเคฐเคคे เคนै। เคฏे weight real numbers เคนोเคคे เคนै। directed เคเคฐ undirected graph เคฆोเคจों เคนी weighted Graph เคนो เคธเคเคคे เคนै।
เคตे Graph เคो weight เคो carry เคจเคนी เคเคฐเคคे เคนै non-weighted Graph เคเคนเคฒाเคคा เคนै।
Terminology of Graph in hindi
Path
Primary node U เคธे เคिเคธी terminal node V เคคเค เคชเคนुंเคเคจे เคे เคฒिเค nodes เคे Order เคे เคฐूเคช เคฎें เคเค Path เคो Define เคिเคฏा เคा เคธเคเคคा เคนै।
Closed path
เคเค path เคो closed path เคเคนा เคाเคเคा เคฏเคฆि initial node terminal node เคे equals เคนै। V0 = VN เคนोเคจे เคชเคฐ เคเค Path Closed เคนो เคाเคเคा ।
Simple path
เคฏเคฆि graph เคे All nodes exception V 0 = V N เคे เคธाเคฅ เค เคฒเค เคนैं , เคคो เคเคธे path (P) เคो closed simple path เคเคนเคคे เคนै।
Cycle
เคเค cycle เคो เคเคธ path เคे เคฐूเคช เคฎें Define เคिเคฏा เคा เคธเคเคคा เคนै เคिเคธเคฎें First and Last vertices เคो เคोเคก़เคเคฐ เคोเค Repeated edges เคฏा vertices เคจเคนीं เคนैं।
Connected Graph
connected Graph เคเค เคเคธा Graph เคนै เคिเคธเคฎें V เคฎें เคช्เคฐเคค्เคฏेเค เคฆो vertices (u, v) เคे เคฌीเค เคोเค path available เคนै। connected Graph เคฎें เคोเค isolated node เคจเคนीं เคนैं।
Complete Graph
เคเค complete graph เคตเคน เคนै เคिเคธเคฎें each node, เค เคจ्เคฏ เคธเคญी nodes เคे เคธाเคฅ connected เคนै। เคเค complete graph เคฎें n(n-1)/2 edges เคนोเคคे เคนैं เคเคนां graph เคฎें nodes เคी เคธंเค्เคฏा n เคนोเคคी เคนै।
Weighted Graph
Weighted graph เคฎें, each edge เคो เคुเค data เคैเคธे length เคฏा weight เคे เคธाเคฅ assign เคिเคฏा เคाเคคा เคนै। edge e เคा เคญाเคฐ w(e) เคे form เคฎें เคฆिเคฏा เคा เคธเคเคคा เคนै।
Digraph
Digraph เคเค directed graph เคนै เคिเคธเคฎें graph เคा each edge เคिเคธी เคจ เคिเคธी direction เคธे connect เคนोเคคा เคนै เคเคฐ traversing เคेเคตเคฒ specified Direction เคฎें เคนी เคिเคฏा เคा เคธเคเคคा เคนै।
Loop
เคเค edge เคो same end points เคे เคธाเคฅ Connected เคนै เคเคธे loop เคเคนा เคा เคธเคเคคा เคนै।
Adjacent Nodes
เคฏเคฆि เคฆो nodes u เคเคฐ v เคเค เคिเคจाเคฐे e เคे เคฎाเคง्เคฏเคฎ เคธे connected เคนैं, เคคो เคจोเคก्เคธ u เคเคฐ v เคो neighbor's) เคฏा adjacent node เคเคนा เคाเคคा เคนै।
Degree of Node
node เคी degree, edges เคी เคธंเค्เคฏा เคนै เคो เคเคธ node เคे เคธाเคฅ connect เคนुเค เคนै। degree 0 เคตाเคฒे node เคो isolated node เคเคนा เคाเคคा เคนै।
0 Comments