Thread: How find the most frequent symbol with markow algorithm

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    13

    How find the most frequent symbol with markow algorithm

    Code:
    
    
    Code:
    I have such task. There is such alpahbeth as {a, b} in markow algorithm concept. So I need to find out which letters (a or b) are more in word "p". If a then to retrieve the word with letter a, if-b-then word with letter "b", if there is equal quantity then 0. How to do it. Where to find such example, at least some clues how to begin.

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    First edit your code, so that it is readable.
    Second, provide us your try
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trouble with an algorithm to find edges
    By kbrown51 in forum C++ Programming
    Replies: 3
    Last Post: 08-09-2011, 02:51 PM
  2. Algorithm::find on string
    By rodrigorules in forum C++ Programming
    Replies: 2
    Last Post: 02-26-2011, 04:18 AM
  3. Replies: 16
    Last Post: 01-28-2010, 03:50 PM
  4. help me find a better algorithm for primes
    By nick2 in forum C Programming
    Replies: 4
    Last Post: 05-30-2009, 07:59 AM
  5. CPU scheaduling algorithm: undefinied symbol
    By Marrah_janine in forum C Programming
    Replies: 2
    Last Post: 09-19-2007, 04:22 AM