Thread: searching

  1. #1
    Registered User major_small's Avatar
    Join Date
    May 2003


    Just wondering: if you use a search engine that searches for a string as parts of a string (ex: searching for "poly" can return "polymorphism"), which is more efficient--searching with: '0 1 2 3 4 5 6 7 8 9 a e i o u', or '0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z'? (spaces are used to mark the beginning/end of a string)

    I figure most results will have a vowel in it, so the second string really doesn't do much that the first doesn't.

    btw, these are filenames I'm searching through, and ironically, with the first string I got 1,602 hits, while the second string only got 1,585 hits. there are many factors that could have slanted those numbers though...

    also: does anybody happen to know about how many english words there are without vowels?
    Join is in our Unofficial Cprog IRC channel
    Channel: #Tech

    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  2. #2
    Registered User
    Join Date
    Mar 2004
    Quote Originally Posted by major_small

    also: does anybody happen to know about how many english words there are without vowels?

    The answer is: "it depends".

    Is 'y' a vowel? Well, when it has a vowel sound, it sometimes can be considered a vowel (sub-vowel?, vowlet?, voweloid? quasi-vowel?)

    Consider: my, try, sky, cyst, syzygy (and lots of others).

    Other than that, there may be some words-that-are-not-really-words that appear in print:

    shhh, psst, mm-hmm.

    And of course lots of abbreviations that have taken on a life of their own (some are usually written with a period after them, some are not; some are more-or-less always capitalized, some are not.)

    Mr., Mrs., Ms, TV, DVD, CD, PhD, etc. (No! Wait: etc. has a vowel.)


    Last edited by Dave Evans; 03-16-2005 at 02:29 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Visual C++ 2005 linking and file sizes
    By Rune Hunter in forum C++ Programming
    Replies: 2
    Last Post: 11-12-2005, 10:41 PM
  4. Searching and matching strings: segmentation fault
    By Smola in forum C Programming
    Replies: 18
    Last Post: 07-11-2005, 12:25 AM