Skip to content

Commit 3ed055e

Browse files
authored
Merge pull request #150 from raj-rathod/rajesh
feat:<Meta Data> meta data add for algorithms
2 parents 5768a61 + 07499db commit 3ed055e

File tree

3 files changed

+61
-5
lines changed

3 files changed

+61
-5
lines changed

src/app/components/Algorithms/algorithms-routing.module.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { NgModule } from '@angular/core';
22
import { Routes, RouterModule } from '@angular/router';
3+
import { pageMetaData } from 'src/app/core/meta-data/meta-data';
34
import { AlgorithmComponent } from 'src/app/layout/algorithm/algorithm.component';
45

56
const routes: Routes = [
@@ -8,22 +9,27 @@ const routes: Routes = [
89
},
910
{
1011
path:'backtracking',
12+
data: pageMetaData.backtracking,
1113
loadChildren: () => import('./backtracking/backtracking.module').then(m => m.BacktrackingModule)
1214
},
1315
{
1416
path: 'brute-force',
17+
data: pageMetaData.bruteForce,
1518
loadChildren: () => import('./brute-force/brute-force.module').then(m => m.BruteForceModule)
1619
},
1720
{
1821
path: 'divide-and-conquer',
22+
data: pageMetaData.divideAndConquer,
1923
loadChildren: () => import('./divide-and-conquer/divide-and-conquer.module').then(m => m.DivideAndConquerModule)
2024
},
2125
{
2226
path: 'dynamic-programming',
27+
data: pageMetaData.dynamicPrograming,
2328
loadChildren: () => import('./dynamic-programming/dynamic-programming.module').then(m => m.DynamicProgrammingModule)
2429
},
2530
{
2631
path: 'greedy',
32+
data: pageMetaData.greedy,
2733
loadChildren: () => import('./greedy/greedy.module').then(m => m.GreedyModule)
2834
},
2935
{
@@ -32,14 +38,17 @@ const routes: Routes = [
3238
},
3339
{
3440
path: 'recursive',
41+
data: pageMetaData.recursive,
3542
loadChildren: () => import('./recursive/recursive.module').then(m => m.RecursiveModule)
3643
},
3744
{
3845
path: 'searching',
46+
data: pageMetaData.searching,
3947
loadChildren: () => import('./searching/searching.module').then(m => m.SearchingModule)
4048
},
4149
{
4250
path: 'sorting',
51+
data: pageMetaData.sorting,
4352
loadChildren: () => import('./sorting/sorting.module').then(m => m.SortingModule)
4453
}
4554

src/app/core/meta-data/meta-data.ts

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,53 @@ export const pageMetaData = {
150150
description:`What is hashing and hash function and what is hash table, properties of the hash function and hashing,
151151
sufficient hash function, applications of the hash table and hash function, advantages and disadvantages of hashing and hash table`,
152152
keywords:`Hash Function, Hash Table, Hashing, Encription, Decription, Fastest Search Method`
153+
},
154+
sorting:{
155+
title:'Sorting Algorithms | Sorting Algorithms Type | DSA Visualization',
156+
description:`What is sorting algorithms, it's different types, properties of sorting algorithms and time complexity`,
157+
keywords:`Sorting Algorithms, Sorting Algorithms Type, Merge Sort, Quick Sort, Insertion Sort, Selection Sort, Counting Sort
158+
, Bucket Sort, Radix Sort, Heap Sort, Shell Sort`,
159+
},
160+
searching:{
161+
title: `Search Algorithms | Search Algorithms Type | DSA Visualization`,
162+
description: `What is search algorithms, it's different types, properties of search algorithms, applications and time complexity`,
163+
keywords:`Search Algorithms, Searching Algorithms, Linear Search, Binary Search, Jump Search,
164+
Interpolation Search, Exponential Search`,
165+
},
166+
bruteForce:{
167+
title:`Brute Force Algorithms | Brute Force Approach | DSA Visualization`,
168+
description:`What is the brute force, properties of brute force algorithms and advantage and disadvantage of brute force algorithms`,
169+
keywords:`Brute Force Algorithms, Brute Force Approach, Simple Problems`,
170+
},
171+
backtracking:{
172+
title: `Backtracking Algorithm | Backtracking Algorithm Properties | Application of Backtracking | DSA Visualization`,
173+
description:`What is the backtracking algorithm, properties of backtracking algorithms, applications of backtracking algorithms
174+
and types of backtracking algorithms problems`,
175+
keywords:`Backtracking, Backtracking Algorithms, Applications of Backtracking, Properties of Backtracking,
176+
Backtracking Algorithms Flowchart`,
177+
},
178+
divideAndConquer:{
179+
title:`Divide and Conquer Algorithms | Properties of Divide and Conquer Algorithms | DSA Visualization`,
180+
description:`What is the divide and conquer algorithm, properties of divide and conquer algorithms,
181+
applications of the divide and conquer algorithm and examples of the algorithm`,
182+
keywords:`Divide And Conquer Algorithms, Examples of Divide and Conquer, Properties of Divide and Conquer`
183+
},
184+
dynamicPrograming:{
185+
title: `Dynamic Programming | Dynamic Programming Algorithms | Dynamic Programming Approach | DSA Visualization`,
186+
description: `What is dynamic programming, properties and applications of dynamic programming, advantage and disadvantage of
187+
dynamic programming and examples of dynamic programming`,
188+
keywords: `Dynamic Programming, Properties and Applications of Dynamic Programming, Examples of Dynamic Programming`,
189+
},
190+
greedy:{
191+
title:`Greedy Algorithms | Properties of Greedy Algorithms | Types Greedy Algorithms | DSA Visualization`,
192+
description:`What is greedy algorithms, properties and applications of greedy algorithms, advantage and disadvantage of
193+
greedy algorithms and examples of greedy algorithms`,
194+
keywords:`Greedy algorithms, Properties and Applications of Greedy Algorithms, Example of Greedy Algorithms,`
195+
},
196+
recursive: {
197+
title:`Recursive algorithms | Recursion | Use Of Recursion | DSA Visualization `,
198+
description:`What is the recursion, properties of the recursion, types of the recursion, What is the role
199+
of the stack in recursion, what is the call stack`,
200+
keywords:`Recursion, Recursion Algorithms, Call Stack, Recursion Types, Application of the recursion`
153201
}
154-
155202
}

src/app/core/meta-data/router-meta-data.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ export const algorithms: RouterLinkData[] = [
6565
name: "Greedy",
6666
route: "/algorithm/greedy"
6767
},
68-
{
69-
name: "Hashing",
70-
route: "/non-primitive/non-linear/hash-table"
71-
},
68+
// {
69+
// name: "Hashing",
70+
// route: "/non-primitive/non-linear/hash-table"
71+
// },
7272
// {
7373
// name: "Randomized",
7474
// route: "/algorithm/randomized"

0 commit comments

Comments
 (0)