The document contains two programming tasks: the first is an R function to generate a multiplication table for a given number, specifically for the number 5. The second task is a Python program that implements the k-means clustering algorithm on a synthetic dataset, visualizing the clusters and their centroids. Both tasks include code snippets demonstrating the required functionality.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
DMS2
The document contains two programming tasks: the first is an R function to generate a multiplication table for a given number, specifically for the number 5. The second task is a Python program that implements the k-means clustering algorithm on a synthetic dataset, visualizing the clusters and their centroids. Both tasks include code snippets demonstrating the required functionality.