From 117908101e95a608f2240236fe55a9f527fa91d5 Mon Sep 17 00:00:00 2001 From: Liu Xinyu Date: Sun, 8 Oct 2017 15:25:42 +0800 Subject: [PATCH] Fixed isort build err --- sorting/insertion-sort/img/Makefile | 4 ++-- sorting/insertion-sort/img/in-place-sort.dot | 2 +- sorting/insertion-sort/isort-en.tex | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sorting/insertion-sort/img/Makefile b/sorting/insertion-sort/img/Makefile index d75e9ace28..0f8867df1e 100644 --- a/sorting/insertion-sort/img/Makefile +++ b/sorting/insertion-sort/img/Makefile @@ -4,6 +4,7 @@ DOT_SOURCES = $(foreach file, $(DOT_OBJECTS), $(file).dot) #suffix replacement, replace .dot with .png PNG_OBJECTS = $(DOT_SOURCES:.dot=.png) +PS_OBJS = $(DOT_SOURCES:.dot=.ps) .SUFFIXES: .eps .jpg .png .dot .ps @@ -37,5 +38,4 @@ png: $(PNG_OBJECTS) dot -Tpng -o $@ $< clean: - rm -f *.ps *.eps trie-en* *~ - rm -f $(PNG_OBJECTS) + rm -f $(PNG_OBJECTS) $(PS_OBJS) diff --git a/sorting/insertion-sort/img/in-place-sort.dot b/sorting/insertion-sort/img/in-place-sort.dot index f136a88961..68c7205e3b 100644 --- a/sorting/insertion-sort/img/in-place-sort.dot +++ b/sorting/insertion-sort/img/in-place-sort.dot @@ -1,6 +1,6 @@ digraph G{ margin=0; - node[shape=record] + node[shape=box] sorted[label=" ... sorted elements ..."]; x; unsorted[label=" ... unsorted elements ..."]; diff --git a/sorting/insertion-sort/isort-en.tex b/sorting/insertion-sort/isort-en.tex index 5f4b4ab2bf..476a6a4af3 100644 --- a/sorting/insertion-sort/isort-en.tex +++ b/sorting/insertion-sort/isort-en.tex @@ -403,7 +403,7 @@ \section{Improvement 2} \State $L \gets $ \Call{Next}{$L$} \EndWhile \State \Call{Next}{$x$} $\gets L$ - \If{$p \eq$ NIL} + \If{$p =$ NIL} \State $H \gets x$ \Else \State \Call{Next}{$p$} $\gets x$