{'fraction_non_alphanumeric': 0.015427769985974754, 'fraction_numerical': 0.0, 'mean_word_length': 5.2631578947368425, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Beaches, bays and headlands

We consider local and global combinatorial constraints on embeddings of a simple closed curve in a rectangular array of unit squares in which the curve lies entirely within the rectangular array and passes through each unit square once. Geographical terminology is convenient to describe the embeddings. We study shortest segments of the embedded curve with no clockwise quarter turns (bays) and a prescribed number of anti clockwise quarter turns (headlands). We also study embeddings which either maximise or minimise the number of quarter turns. Enumerative questions related to these embeddings have recently been studied by Kwong and Rogers, as Hamiltonian cycles in grid graphs.