What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-12 19:36:18
knapsack algorithm in python
# a dynamic approach # Returns the maximum value that can be stored by the bag def knapSack(W, wt, val, n): K = [[0 for x in range(W + 1)] for x in range(n + 1)] #Table in bottom up manner for i in range(n + 1): &nbs... Add solution -
Other 2021-09-05 00:14:02
what is hierarchical clustering
Hierarchical clustering, is an unsupervised learning algorithm that groups similar objects into groups called clusters. There are ways to create cluster hierarchy:- 1. Agglomerative (bottom up approach) 2. Divisive (top down approach) Agglomerative clus... Add solution