Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6745

sublist clearing

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!newsfeed.x-privat.org!news-out.readnews.com!transit4.readnews.com!newsfeeds.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail
From borges2003xx <borges2003xx@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject sublist clearing
Date Fri, 25 Nov 2011 09:54:10 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <janok2$app$1@smc.vnet.net> (permalink)
Lines 16
NNTP-Posting-Date 25 Nov 2011 08:58:31 GMT
NNTP-Posting-Host ddf79d96.news.twtelecom.net
X-Trace DXC=]Ca2DgDaBciJiN0nd\md:iC_A=>8kQj6mm^eQlV`f18gWQF_62=Zl3iEFiONJ7[Gofl<]bjnKEa2n
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:6745

Show key headers only | View raw


I need to clear a list in which there are two sublist ,not overlapping
with a property
i.e., in this case,equals and with length >= 2)
mm[{___, b1__, ___, b1__, ___}] := {} /; Length[{b1}] >= 2

or for example 2 sublists, with a similarity function equal 0 and
Legth = 4
mm[{___, b1__, ___, b2__, ___}] := {} /;
  NeedlemanWunschSimilarity[{b1}, {b2}] == 0 && Length[{b1}] == 4 &&
   Length[{b2}] == 4
and so on.....

For mathematica, guru who know internal algorithm is there a faster
way, perhaps using PatternTest (?).

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

sublist clearing borges2003xx <borges2003xx@gmail.com> - 2011-11-25 09:54 +0000

csiph-web