File size: 1,835 Bytes
6afd6aa fc2b698 6afd6aa 83d0c67 e2da8b4 6afd6aa 83d0c67 6afd6aa 83d0c67 6afd6aa 83d0c67 fc2b698 e2da8b4 6afd6aa fc2b698 0c7b25a fc2b698 | 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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | ---
pretty_name: Code Time Complexity Tasks
configs:
- config_name: default
data_files:
- split: train
path: data/*.parquet
- config_name: code_from_tc_mcq
data_files:
- split: train
path: data/code_from_tc_mcq*.parquet
- config_name: code_to_tc_mcq
data_files:
- split: train
path: data/code_to_tc_mcq*.parquet
- config_name: tc_direct
data_files:
- split: train
path: data/tc_direct*.parquet
size_categories:
- 100K<n<1M
dataset_info:
features:
- name: data_source
dtype: string
- name: prompt
list:
- name: content
dtype: string
- name: role
dtype: string
- name: ability
dtype: string
- name: reward_model
struct:
- name: extraction_method
dtype: string
- name: ground_truth
dtype: string
- name: style
dtype: string
- name: extra_info
struct:
- name: comp
dtype: string
- name: idx
dtype: string
- name: problem_id
dtype: string
- name: task_type
dtype: string
splits:
- name: code_from_tc_mcq
num_bytes: 301760025
num_examples: 99946
- name: code_to_tc_mcq
num_bytes: 120263200
num_examples: 99896
- name: tc_direct
num_bytes: 65143462
num_examples: 62185
download_size: 476966917
dataset_size: 487166687
---
## Code Time Complexity prediction
Sourced from BigOBench, using a subset of the N-most commonly occuring time complexities in the dataset
Three tasks:
- tc_direct: Directly predict the time complexity as O(X) given the code
- code_to_tc_mcq: Select the correct time complexity from four options, given the code
- code_from_tc_mcq: Given a time complexity, select the code with that time complexity from four options.
|Complexity|
|:---|
|O(1)|
|O(logn)|
|O(n)|
|O(n+m)|
|O(nlogn)|
|O(nlogn+m)|
|O(n+mlogm)|
|O(n*m)|
|O(n**2)| |