<Enter a one-sentence description of this project here.>
Project description
Sparkdata challenge for finding multiplicative pairs in a sorted array of decimal numbers that are constructed from two arrays (A,B), one containing the integer part and one containing the decimal part but as an integer.
The decimal numbers are then constructed as following: C[i] = A[i] + B[i] / scale
where the scale is a fixed number (here 1_000_000).
Free software: MIT license
Documentation: https://sparkdatachallenge.readthedocs.io.
Features
Brute force method that fails due to memory allocation for large arrays but only uses numpy vectorized functions
Brute force method based on a double for-loop
Math based method - optimized using mathematical properties of the inequalities and leveraging that the decimal number array C is sorted.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sparkdatachallenge-0.1.1.tar.gz
.
File metadata
- Download URL: sparkdatachallenge-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.4 Linux/4.12.14-lp151.28.91-default
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43527169729b4c4669862add7afd0762d8fdb8b66c4998467ccf5d057769378f |
|
MD5 | 52f326c2977a3188bd1844bc35b333f1 |
|
BLAKE2b-256 | 6b3b5829da0d7d153143b712076b816d7529320dc146c7c79cad8cdf339325f6 |
File details
Details for the file sparkdatachallenge-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sparkdatachallenge-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.4 Linux/4.12.14-lp151.28.91-default
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6323433c0c5145e2c4048cb1fe3bfbaa6a8a3f7ac4066d8b8dcd4ceb38dd314a |
|
MD5 | 1fea751e5b2ea927154ca645b42c5a51 |
|
BLAKE2b-256 | fba44c334f75b1be84dfe6f5c911ee39fe60a117e995404b9a8f2b744640b9ba |