File size: 997 Bytes
9ba12c8
f1d0142
9ba12c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f1d0142
 
 
9ba12c8
 
f2e04e0
f1d0142
f2e04e0
f1d0142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
pretty_name: Code Space Complexity Tasks
configs:
- config_name: code_from_sc_mcq
  data_files:
  - split: train
    path: data/code_from_sc_mcq.parquet
- config_name: code_to_sc_mcq
  data_files:
  - split: train
    path: data/code_to_sc_mcq.parquet
- config_name: sc_direct
  data_files:
  - split: train
    path: data/sc_direct.parquet
- config_name: all
  data_files:
  - split: train
    path: data/*.parquet
    default: true
size_categories:
- 100K<n<1M
---

## Code Space Complexity prediction
Sourced from BigOBench, using a subset of the N-most commonly occuring space complexities in the dataset

Three tasks:
- sc_direct: Directly predict the space complexity as O(X) given the code
- code_to_sc_mcq: Select the correct space complexity from four options, given the code
- code_from_sc_mcq: Given a space complexity, select the code with that space complexity from four options.


|Complexity|
|:---|
|O(1)|
|O(logn)|
|O(logn*logm)|
|O(n)|
|O(n+m)|
|O(nlogn)|
|O(n*m)|
|O(n**2)|