Contents

-

Enumerating symmetric and non-symmetric peaks in words

Walaa Asakly1
1Department of Computer Science, University of Haifa, 3498838 Haifa, Israel

Abstract

Let [k]={1,2,,k} be an alphabet over k letters. A word ω of length n over alphabet [k] is an element of [k]n and is also called k-ary word of length n. We say that ω contains a peak, if exists 2in1 such that ωi1ωi+1. We say that ω contains a symmetric peak, if exists 2in1 such that ωi1=ωi+1<ωi, and contains a non-symmetric peak, otherwise. In this paper, we find an explicit formula for the generating functions for the number of k-ary words of length n according to the number of symmetric peaks and non-symmetric peaks in terms of Chebyshev polynomials of the second kind. Moreover, we find the number of symmetric and non-symmetric peaks in k-ary word of length n in two ways by using generating functions techniques, and by applying probabilistic methods.

Keywords: Word, symmetric peak, non-symmetric peak, Chebyshev polynomial of the second kind.