--- license: mit task_categories: - other language: - en tags: - blockchain - proof-of-work - np-complete - optimization - energy-measurement - consensus size_categories: - 1K } ``` - **SubsetSum**: `data` is an array of indices (numbers) - **SAT**: `data` is an array of 0/1 values (normalized from booleans) - **TSP**: `data` is an array representing the tour (numbers) - **Custom**: `data` is a base64-encoded string ### Problem Data Structure For consensus blocks, `problem_data` contains comprehensive block information: ```json { "height": , "miner": , "transactions": [...], "solution_reveal": { "problem": {...}, "solution": { "type": "...", "data": [...] }, "commitment_hash": "...", "problem_hash": "..." }, "solve_time_us": , "verify_time_us": , "energy_estimate_joules": , ... } ``` ## Dataset Creation ### Source Data Data is collected in real-time from running COINjecture Network nodes. Each node pushes records to this dataset when: - A problem is submitted via transaction - A solution is submitted and verified - A consensus block is mined or validated ### Data Collection Process 1. **Problem Submission**: When a problem transaction is processed, a record is created with problem data 2. **Solution Submission**: When a solution is verified, metrics are calculated and a record is created 3. **Consensus Blocks**: Complete block data is recorded for transparency and analysis ### Data Preprocessing - Solutions are normalized to consistent schema (see Solution Data Structure) - Energy measurements use multiple methods (RAPL, powermetrics, or estimation) - Addresses are hex-encoded for consistency - Timestamps are Unix epoch seconds - Large integers (u128) are serialized as strings to avoid JSON precision loss - All problem types are unified in a single continuous dataset for cross-problem analysis ## Dataset Statistics - **Total Records**: Growing in real-time (unified dataset with all problem types) - **Update Frequency**: Real-time (buffered, flushed when 10 total records accumulated across all problem types) - **Data Format**: JSONL (newline-delimited JSON) - **Storage Location**: `/data/` directory in the repository - **Problem Types**: SubsetSum, SAT, TSP, Custom, Private (all in one dataset) - **Data Quality**: v2.0 institutional-grade with actual block header metrics when available ## Considerations for Using the Data ### Ethical Considerations - All data is from public blockchain transactions - Addresses are included only if explicitly enabled (privacy option) - No personally identifiable information is collected ### Licensing This dataset is released under the MIT License. ### Citation Information If you use this dataset in your research, please cite: ```bibtex @dataset{coinjecture_np_solutions, title={COINjecture NP Solutions Dataset}, author={COINjecture Network}, year={2024}, url={https://huggingface.co/datasets/COINjecture/NP_Solutions} } ``` ## Dataset Access ### Using Hugging Face Datasets ```python from datasets import load_dataset # Load the dataset dataset = load_dataset("COINjecture/NP_Solutions", split="train") # Access records for record in dataset: print(record["problem_id"]) print(record["problem_data"]) ``` ### Direct File Access The raw JSONL files are available in the `/data/` directory: - Files are named `data_.jsonl` - Each line is a complete JSON record - Files can be processed with standard JSONL tools ### API Access The dataset is accessible via the Hugging Face API: - Dataset viewer: https://huggingface.co/datasets/COINjecture/NP_Solutions - API endpoint: `https://huggingface.co/api/datasets/COINjecture/NP_Solutions` ## Additional Information ### Energy Measurement Methods - **RAPL** (Linux): Intel/AMD Running Average Power Limit counters - **powermetrics** (macOS): macOS powermetrics tool - **estimate**: CPU TDP-based estimation (fallback, works everywhere) ### Problem Types 1. **SubsetSum**: Find a subset of numbers that sum to a target 2. **SAT**: Boolean satisfiability problem 3. **TSP**: Traveling Salesman Problem 4. **Custom**: Arbitrary problem data (base64 encoded) ### Performance Metrics - **Time Asymmetry**: Measures how much harder solving is than verifying - **Space Asymmetry**: Memory usage differences - **Energy Asymmetry**: Energy consumption differences - **Energy Efficiency**: Work performed per unit of energy ## Contact For questions or issues: - Dataset repository: https://huggingface.co/datasets/COINjecture/NP_Solutions - Open a discussion on the dataset page ## Changelog ### 2025-11-23 - **Unified Dataset**: Consolidated all problem types (SubsetSum, SAT, TSP, Custom) into a single continuous dataset - **Schema Fix**: Fixed u128 bounty serialization (now serialized as string to avoid JSON precision loss) - **Data Provenance**: Added institutional-grade data provenance fields (metrics_source, measurement_confidence, data_version) - **Unified Buffer**: Changed from per-problem-type buffers to unified buffer that flushes all types together - **Enhanced Metrics**: All consensus blocks now include actual block header metrics (high confidence)