Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,75 +1,68 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
-
|
| 28 |
-
|
| 29 |
-
-
|
| 30 |
-
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
num_examples: 454
|
| 70 |
-
- name: sample
|
| 71 |
-
num_bytes: 126488.84698275862
|
| 72 |
-
num_examples: 50
|
| 73 |
-
download_size: 5161799
|
| 74 |
-
dataset_size: 9415829.769396551
|
| 75 |
-
---
|
|
|
|
| 1 |
+
# Project Euler Problems Dataset
|
| 2 |
+
|
| 3 |
+
A comprehensive collection of mathematical and programming challenges from Project Euler (projecteuler.net), organized for machine learning and educational purposes.
|
| 4 |
+
|
| 5 |
+
## Dataset Description
|
| 6 |
+
|
| 7 |
+
This dataset contains 918 problems from Project Euler, a series of challenging mathematical/computer programming problems that require creative problem-solving approaches.
|
| 8 |
+
|
| 9 |
+
### Features
|
| 10 |
+
|
| 11 |
+
- **id**: Problem number (integer)
|
| 12 |
+
- **title**: Problem title
|
| 13 |
+
- **problem**: Plain text version of the problem statement
|
| 14 |
+
- **question_latex**: LaTeX formatted problem statement
|
| 15 |
+
- **question_html**: HTML formatted problem statement
|
| 16 |
+
- **numerical_answer**: The correct numerical answer
|
| 17 |
+
- **pub_date**: Publication date
|
| 18 |
+
- **solved_by**: Number of people who have solved the problem
|
| 19 |
+
- **diff_rate**: Difficulty rating (percentage of users who solved it)
|
| 20 |
+
|
| 21 |
+
## Splits
|
| 22 |
+
|
| 23 |
+
The dataset provides several splits for different use cases:
|
| 24 |
+
|
| 25 |
+
- **train/test**: Standard 80/10/10 split for machine learning
|
| 26 |
+
- train: 734 problems
|
| 27 |
+
- test: 184 problems
|
| 28 |
+
- **easy/medium/hard**: Problems grouped by difficulty level
|
| 29 |
+
- easy: 277 problems (>25% solve rate)
|
| 30 |
+
- medium: 336 problems (5-25% solve rate)
|
| 31 |
+
- hard: 305 problems (≤5% solve rate)
|
| 32 |
+
- **early_problems/later_problems**: First half vs. second half of problems by ID
|
| 33 |
+
- early_problems: 464 problems
|
| 34 |
+
- later_problems: 454 problems
|
| 35 |
+
- **sample**: A random selection of 50 problems for quick experimentation
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
## Usage
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from datasets import load_dataset
|
| 42 |
+
|
| 43 |
+
# Load the entire dataset with all splits
|
| 44 |
+
dataset = load_dataset("your-username/project-euler-problems")
|
| 45 |
+
|
| 46 |
+
# Work with specific splits
|
| 47 |
+
train_problems = dataset["train"]
|
| 48 |
+
hard_problems = dataset["hard"]
|
| 49 |
+
sample_problems = dataset["sample"]
|
| 50 |
+
|
| 51 |
+
# Example: Get a problem
|
| 52 |
+
problem = train_problems[0]
|
| 53 |
+
print(f"Problem #{problem["id"]}: {problem["title"]}")
|
| 54 |
+
print(problem["problem"])
|
| 55 |
+
print(f"Answer: {problem["numerical_answer"]}")
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Potential Applications
|
| 59 |
+
|
| 60 |
+
- Training math problem-solving models
|
| 61 |
+
- Generating solutions or solution approaches
|
| 62 |
+
- Testing reasoning capabilities of language models
|
| 63 |
+
- Educational tools for learning algorithmic thinking
|
| 64 |
+
|
| 65 |
+
## Citation & License
|
| 66 |
+
|
| 67 |
+
This dataset is provided for research and educational purposes.
|
| 68 |
+
Project Euler problems are from projecteuler.net.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|