save progress
This commit is contained in:
@@ -115,11 +115,11 @@ print(f"Saved: {save_folder}/k4_vs_N.png")
|
|||||||
|
|
||||||
# k3
|
# k3
|
||||||
fig, ax = plt.subplots(figsize=(7, 5))
|
fig, ax = plt.subplots(figsize=(7, 5))
|
||||||
ax.plot(nodes, k3_bin, marker="o", color="steelblue", label="binary k4")
|
ax.plot(nodes, k3_bin, marker="o", color="steelblue", label="binary k3")
|
||||||
ax.plot(nodes, k3_fib, marker="s", color="darkorange", label="fibonacci k4")
|
ax.plot(nodes, k3_fib, marker="s", color="darkorange", label="fibonacci k3")
|
||||||
ax.set_xlabel("N (nodes)")
|
ax.set_xlabel("N (nodes)")
|
||||||
# ax.set_ylabel("k3 — decrease-key cost per call [s]")
|
ax.set_ylabel("k3 — iteration cost per call [s]")
|
||||||
# ax.set_title("k3 (decrease-key unit cost) vs N")
|
ax.set_title("k3 (iteration unit cost) vs N")
|
||||||
ax.legend(fontsize=8)
|
ax.legend(fontsize=8)
|
||||||
ax.grid(True, alpha=0.4)
|
ax.grid(True, alpha=0.4)
|
||||||
fig.tight_layout()
|
fig.tight_layout()
|
||||||
|
|||||||
Reference in New Issue
Block a user