Skip to content

Commit 65bb98b

Browse files
committed
Update
1 parent f199ef5 commit 65bb98b

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

cp-algo/geometry/closest_pair.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace cp_algo::geometry {
2121
}
2222
}
2323
}
24-
std::map<point, big_vector<size_t>> neigs;
24+
big_map<point, big_vector<size_t>> neigs;
2525
md = (int64_t)ceil(sqrt((double)md));
2626
for(size_t i = 0; i < n; i++) {
2727
neigs[r[i] / md].push_back(i);

cp-algo/graph/shortest_path.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace cp_algo::graph {
2020
return dist > other.dist;
2121
}
2222
};
23-
std::priority_queue<que_t> pq;
23+
big_priority_queue<que_t> pq;
2424

2525
dijkstra_context(int n) : shortest_path_context(n) {}
2626

@@ -73,7 +73,7 @@ namespace cp_algo::graph {
7373
edge_index e;
7474
node_index v;
7575
};
76-
big_vector<std::basic_string<traverse_edge>> dependents;
76+
big_vector<big_basic_string<traverse_edge>> dependents;
7777

7878
deep_spfa_context(int n) : spfa_context(n), dependents(n) {}
7979

cp-algo/number_theory/two_squares.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace cp_algo::math {
3939
return {0};
4040
}
4141
auto primes = factorize(n);
42-
std::map<Int, int> cnt;
42+
big_map<Int, int> cnt;
4343
for(auto p: primes) {
4444
cnt[p]++;
4545
}

cp-algo/util/big_alloc.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,7 @@ namespace cp_algo {
7979
using big_stack = std::stack<T, big_deque<T>>;
8080
template<typename T>
8181
using big_queue = std::queue<T, big_deque<T>>;
82+
template<typename T>
83+
using big_priority_queue = std::priority_queue<T, big_vector<T>>;
8284
}
8385
#endif // CP_ALGO_UTIL_big_alloc_HPP

0 commit comments

Comments
 (0)