MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Detect pairs, tripples in a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22442] Detect pairs, tripples in a list
  • From: hans.steffani at e-technik.tu-chemnitz.de (Hans Friedrich Steffani)
  • Date: Sat, 4 Mar 2000 02:26:20 -0500 (EST)
  • Organization: Chemnitz University of Technology
  • Sender: owner-wri-mathgroup at wolfram.com

I have a list with many 0s and some 1s. Now I want to detect pairs
and tripples of 1s with no 0 between to substitute them by a single 1
and the apropriate number of 0. How can this be done?

Hans Friedrich Steffani

-- 
Hans Friedrich Steffani
Institut fuer Elektrische Maschinen und Antriebe, TU Chemnitz
mailto:hans.steffani at e-technik.tu-chemnitz.de
http://www.tu-chemnitz.de/~hfst/


  • Prev by Date: Re: How do I manipulate that data?
  • Next by Date: Re: Re:How do I manipulate that data?
  • Previous by thread: importing LaTeX
  • Next by thread: Detect pairs, tripples in a list