Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. Counting occurrences ...
Conference paper

Counting occurrences for a finite set of words: an inclusion-exclusion approach

Frédérique Bassino ORCID (1), Julien Clément ORCID (2), J. Fayolle (3), P. Nicodème (4)
(1) Laboratoire d'Informatique Gaspard-Monge
(2) Equipe AMACC - Laboratoire GREYC - UMR6072
(3) Laboratoire de Recherche en Informatique
(4) Laboratoire d'informatique de l'École polytechnique [Palaiseau]
Download article
Open on HAL
Imported on
May 10, 2017
Published on
December 31, 2006
Last modified on
March 31, 2025
Volume
DMTCS Proceedings vol. AH, 2007 Conference on Analysis of Algorithms (AofA 07)
Proceedings
DOI
10.46298/dmtcs.3543
License
https://about.hal.science/hal-authorisation-v1
Indicators
644
Views
712
Downloads

Counting occurrences for a finite set of words: an inclusion-exclusion approach

Frédérique Bassino ORCID (1), Julien Clément ORCID (2), J. Fayolle (3), P. Nicodème (4)
(1) Laboratoire d'Informatique Gaspard-Monge
(2) Equipe AMACC - Laboratoire GREYC - UMR6072
(3) Laboratoire de Recherche en Informatique
(4) Laboratoire d'informatique de l'École polytechnique [Palaiseau]
Abstract
In this paper, we give the multivariate generating function counting texts according to their length and to the number of occurrences of words from a finite set. The application of the inclusion-exclusion principle to word counting due to Goulden and Jackson (1979, 1983) is used to derive the result. Unlike some other techniques which suppose that the set of words is reduced (<i>i..e.</i>, where no two words are factor of one another), the finite set can be chosen arbitrarily. Noonan and Zeilberger (1999) already provided a MAPLE package treating the non-reduced case, without giving an expression of the generating function or a detailed proof. We give a complete proof validating the use of the inclusion-exclusion principle and compare the complexity of the method proposed here with the one using automata for solving the problem.
Keywords
  • [INFO.INFO-DS]Computer Science [cs]/Data Structures and Algorithms [cs.DS]
  • [INFO.INFO-DM]Computer Science [cs]/Discrete Mathematics [cs.DM]
  • [MATH.MATH-CO]Mathematics [math]/Combinatorics [math.CO]
  • [INFO.INFO-CG]Computer Science [cs]/Computational Geometry [cs.CG]
  • word statistics
  • inclusion-exclusion
  • generating functions
Cited by

Source: OpenCitations

  • Successions in Words and Compositions

    Annals of Combinatorics

    Authors : Arnold Knopfmacher ORCID, Augustine Munagi ORCID, Stephan Wagner ORCID

    Journal reference : Volume 16, 2012, pp. 277-287

    DOI : 10.1007/s00026-012-0131-z
  • Exact p-value calculation for heterotypic clusters of regulatory motifs and its application in computational annotation of cis-regulatory modules

    Algorithms for Molecular Biology

    Authors : Valentina Boeva ORCID, Julien Clément ORCID, Mireille Régnier, Mikhail A Roytberg ORCID, Vsevolod J Makeev ORCID

    Journal reference : Volume 2, 2007, pp. 13

    DOI : 10.1186/1748-7188-2-13
Preview
Loading PDF preview...