Find Jobs
Hire Freelancers

Search algorithm using prime numbers

$10-30 USD

完了済み
投稿日: 約4年前

$10-30 USD

完了時にお支払い
I am thinking of using prime numbers as a way to search (and scan) through a text. In regular string matching, the algorithm will compare each character of string to be compared sequentially. My idea was to skip the i-th character by a value of a prime number. For example, if nth character doesn’t match, see if it matches after skipping 7 characters (a prime number) more in the string. I am thinking of storing few prime numbers in an array then using it as a variable to skip the characters during the scan. For example, if skipping 7 characters is too much, reduce to 3 characters or the opposite, increase to skipping 17 characters. I would like this algorithm made in C for performance. I have included a pseudo code and C mix as a sketch for you to see what the algorithm is like.
プロジェクト ID: 24149286

プロジェクトについて

1個の提案
リモートプロジェクト
アクティブ 4年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
hi , it's an easy task for me and i can do it as required and on time . thanks in advance .
$30 USD 7日以内
5.0 (27 レビュー)
4.5
4.5

クライアントについて

JAPANのフラグ
Hiratsuka-shi, Japan
5.0
29
お支払い方法確認済み
メンバー登録日:8月 3, 2007

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。