(a) Coding of the first self-avoiding curve from the figure and its chord diagram;
(b) chord diagram of the second self-avoiding curve from the figure and its dual.