How To Install libmath-convexhull-monotonechain-perl on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 416 words
Introduction
In this tutorial we learn how to install libmath-convexhull-monotonechain-perl on Ubuntu.
What is libmath-convexhull-monotonechain-perl
libmath-convexhull-monotonechain-perl is:
Math::ConvexHull::MonotoneChain optionally exports a single function convex_hull which calculates the convex hull of the input points and returns it. Andrew’s monotone chain convex hull algorithm constructs the convex hull of a set of 2-dimensional points in O(n*log(n)) time.
It does so by first sorting the points lexicographically (first by x-coordinate, and in case of a tie, by y-coordinate), and then constructing upper and lower hulls of the points in O(n) time. It should be somewhat faster than a plain Graham’s scan (also O(n*log(n))) in practice since it avoids polar coordinates.
There are three methods to install libmath-convexhull-monotonechain-perl on Ubuntu. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libmath-convexhull-monotonechain-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libmath-convexhull-monotonechain-perl using apt-get by running the following command:
sudo apt-get -y install libmath-convexhull-monotonechain-perl
Install libmath-convexhull-monotonechain-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libmath-convexhull-monotonechain-perl using apt by running the following command:
sudo apt -y install libmath-convexhull-monotonechain-perl
Install libmath-convexhull-monotonechain-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install libmath-convexhull-monotonechain-perl using aptitude by running the following command:
sudo aptitude -y install libmath-convexhull-monotonechain-perl
How To Uninstall libmath-convexhull-monotonechain-perl on Ubuntu
To uninstall only the libmath-convexhull-monotonechain-perl package we can use the following command:
sudo apt-get remove libmath-convexhull-monotonechain-perl
Uninstall libmath-convexhull-monotonechain-perl And Its Dependencies
To uninstall libmath-convexhull-monotonechain-perl and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libmath-convexhull-monotonechain-perl
Remove libmath-convexhull-monotonechain-perl Configurations and Data
To remove libmath-convexhull-monotonechain-perl configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libmath-convexhull-monotonechain-perl
Remove libmath-convexhull-monotonechain-perl configuration, data, and all of its dependencies
We can use the following command to remove libmath-convexhull-monotonechain-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmath-convexhull-monotonechain-perl
Dependencies
libmath-convexhull-monotonechain-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libmath-convexhull-monotonechain-perl package on Ubuntu using different package management tools: apt, apt-get and aptitude.