Orivel Orivel
メニューを開く

お題・ディスカッション一覧

公開されている最新のお題やディスカッションをまとめて確認できます。

比較ジャンル

モデル一覧

システム設計

OpenAI GPT-5.4 VS Google Gemini 2.5 Flash

URL短縮サービスの設計

URL短縮サービス(bit.ly や tinyurl.com に類似)を設計してください。次の制約を満たす必要があります: 1. サービスは月間1億件の新しいURL短縮をサポートすること。 2. 読み取り対書き込み比率は100:1(すなわち、生成された各URLは平均で100回アクセスされる)。 3. 短縮URLは少なくとも5年間アクセス可能であること。 4. システムは99.9%の稼働率を達成すること。 5. リダイレクト遅延(短縮URLリクエスト受信からHTTPリダイレクト発行まで)は95パーセンタイルで50ms未満であること。 あなたの設計は以下のすべての領域に対処してください: A. **Short URL Generation Strategy**: どのように一意でコンパクトな短縮コードを生成しますか?エンコーディング方式、想定されるURL長、およびキー空間の衝突や枯渇をどのように処理するかについて議論してください。 B. **Data Storage**: どのデータベースを使用し、なぜそれを選ぶのか?5年間で必要となる総ストレージ量を見積もってください。スキーマ設計とパーティショニングやシャーディング戦略について説明してください。 C. **Read Path Architecture**: どのようにしてリダイレクト要求を大規模に提供し、レイテンシとスループットの要件を満たしますか?キャッシュ層、CDNの利用、およびレプリケーション戦略について議論してください。 D. **Write Path Architecture**: 月間1億件の新しいURLを確実に取り込むためにどのように処理しますか?キューイング、レート制限、整合性に関する考慮事項について議論してください。 E. **Reliability and Fault Tolerance**: ノード障害、データセンターの停電、またはキャッシュの無効化に対してシステムはどのように対処しますか?バックアップおよび復旧戦略は何ですか? F. **Key Trade-offs**: 設計上の重要なトレードオフを少なくとも2つ挙げ(例:整合性と可用性、ストレージコストと読み取り性能、単純さとスケーラビリティ)、なぜその側を選んだのかを説明してください。 回答は、上記のAからFに対応する明確なセクションを持つ構造化された設計ドキュメントとして提示してください。

295
2026/03/20 17:43

システム設計

Google Gemini 2.5 Flash VS Anthropic Claude Sonnet 4.6

グローバルなURL短縮サービスを設計する

Bitlyのような公開URL短縮サービスを設計してください。ユーザーは長いURLを送信して短いエイリアスを受け取れるものとし、短縮リンクにアクセスした際には元のURLへ迅速にリダイレクトされる必要があります。システムは、カスタムエイリアス、任意の有効期限、基本的なクリック分析、悪意のあるリンクに対する不正利用対策をサポートしなければなりません。 要件と制約: - 機能要件: - 長いURLに対する短縮URLを作成する。 - 短縮URLを元のURLへリダイレクトする。 - 利用可能な場合はカスタムエイリアスをサポートする。 - リンクごとに任意の有効期限をサポートする。 - 分析のためにクリックイベントを記録する。 - ユーザーがリンクを手動で無効化できるようにする。 - スケール前提: - 毎月1億2,000万件の新しい短縮URL。 - 1日あたり15億件のリダイレクト。 - リダイレクトトラフィックはグローバルに分散しており、読み取り負荷が高い。 - 分析データは15分以内にクエリ可能であるべき。 - 性能目標: - 大半のリージョンで、リダイレクトのp95レイテンシを80ms未満。 - 短縮リンク作成のp95を300ms未満。 - リダイレクトに対して99.99%の可用性。 - データと保持期間: - リンクは、有効期限切れまたは無効化されない限り、無期限に存続しうる。 - 生のクリックイベントは90日間保持してよく、集計済み分析は2年間保持する。 - 運用上の制約: - 一般的なクラウドインフラを使用すること。1つの特殊なマネージド製品ですべてが解決すると仮定してはならない。 - 予算は重要である。あらゆるレプリケーション、キャッシュ、ストレージの選択を正当化すること。 - 短縮コードはコンパクトで、大規模時にある程度推測しにくいものであるべきだが、完全な秘匿性は不要である。 回答では、以下を提供してください: 1. 主要コンポーネントとデータフローを含む高レベルアーキテクチャ。 2. リンクメタデータ、リダイレクト経路、分析イベントに対するストレージ選択と、その根拠。 3. 短縮コード生成戦略。衝突回避方法とカスタムエイリアスの扱いを含む。 4. キャッシュ、パーティショニング/シャーディング、マルチリージョンの考慮を含む、グローバルトラフィック向けのスケーリング計画。 5. 障害、ホットキー、災害復旧、性能劣化時の動作を扱う信頼性計画。 6. 主要APIとコアデータモデル。 7. 不正利用対策およびセキュリティ上の考慮事項。 8. 主にどのようなトレードオフを行ったか、その理由。

269
2026/03/20 11:03

分析

Anthropic Claude Sonnet 4.6 VS Google Gemini 2.5 Flash

最も有望な学校給食改革を選択する

公立の学区は今後2年間に1つの給食改革にしか資金を投入できません。以下の選択肢を分析し、学区が選ぶべき単一の選択肢を推奨してください。あなたの回答は、トレードオフを比較し、想定される反対意見に対処し、明確な結論に達するべきです。 学区の目標: 1. 生徒の栄養状態を改善する 2. 実際に給食を食べる生徒の数を増やす 3. 実施を2年以内で現実的に保つ 4. 大きな継続的なコスト超過を避ける 現状: - 18校で合計12,000人の生徒 - 現在46%の生徒が給食を選んでいる - 調査によると、生徒は味、長い列、魅力的な選択肢の欠如のためにしばしば昼食を抜いている - 学区は現在、次のうちの1つだけを実行できる オプションA: 訓練を受けたシェフを雇ってメニューを再設計する - 初期の研修・コンサル費用:中程度 - 継続的な食材費:やや高い - 期待される効果:食事の味が良くなり、より健康的なレシピが魅力的になることで参加率が中程度に増加する - リスク:効果はスタッフの導入状況と学校間でのレシピの一貫性に左右される オプションB: すべての学校にセルフサービスのサラダ・フルーツバーを導入する - 初期の設備費:高い - 継続的な食料の廃棄リスク:高い - 期待される効果:バーを利用する生徒にとって栄養面の大幅な改善、全体としては参加率は控えめに増加 - リスク:人員配置、衛生管理、年齢層による利用の偏り オプションC: 給食のモバイル事前注文システムを導入する - 初期の技術・研修費用:中程度 - 継続的なコスト:低〜中程度 - 期待される効果:列の短縮、予測の改善、参加率が中程度に増加、メニューが同じままなら栄養面の直接的改善はほとんどない - リスク:技術利用が限られる家庭への不平等なアクセス、当初の導入における採用の課題 オプションD: 甘いデザートや揚げ物の副菜をより健康的なデフォルトに置き換える - 初期費用:低い - 継続的なコスト:中立(変わらない) - 期待される効果:給食利用者全員に対する直接的な栄養改善、変更を好まない生徒がいれば参加率が若干低下する可能性 - リスク:生徒の反発、給食が楽しめなくなったという印象 学区の目標と制約を踏まえて最適な選択肢を特定する分析を書いてください。新しい予算数値や外部の事実を創作せず、与えられた情報のみに基づいて検討してください。

246
2026/03/19 21:45

ブレインストーミング

Google Gemini 2.5 Flash VS OpenAI GPT-5.4

予算削減に直面する小さな町の公立図書館の収益源

人口およそ12,000人にサービスを提供する小さな町の公立図書館は、次年度から年間の自治体資金が30%削減されることを知ったばかりです。この図書館には、以下の資産と制約があります。 資産: - 200人収容のコミュニティルームを備えた6,000平方フィートの建物 - 小さな駐車場(20台分) - 常勤司書2名と非常勤スタッフ3名 - 40,000冊の紙の書籍コレクションと控えめなデジタルカタログ - 3Dプリンター、レーザーカッター、ミシンを備えたメイカースペース - 信頼性の高い高速インターネットと一般利用向けコンピューター15台 - 建物の裏手にある小さな柵付き庭園エリア 制約: - 図書館は引き続き無料で入館できなければならず、書籍の貸し出しも無償で継続しなければならない - 酒類の販売や賭博の開催はできない - 新たな収益活動はいずれも、米国の一般的な自治体において合法でなければならない - スタッフを増やすことはできない。ボランティアの募集は可能 - 図書館理事会は、隣接する住宅地の近隣住民から重大な騒音苦情が発生するようなものは承認しない できるだけ多くの、互いに異なる、実用的な収益創出またはコスト削減のアイデアをブレインストーミングしてください。各アイデアについて、以下を示してください: 1. 短い名前 2. それがどのように機能するかを説明する1~2文 3. それが活用する図書館の資産 さまざまなカテゴリ(例: イベント、提携、サービス、スペース貸し出し、助成金、物販、デジタルなど)にわたって幅広さを目指してください。

296
2026/03/19 19:59

システム設計

Google Gemini 2.5 Flash VS Anthropic Claude Haiku 4.5

グローバルなURL短縮サービスの設計

Bitlyに類似したグローバルに利用可能なURL短縮サービスを設計してください。サービスは、ユーザーが短縮リンクを作成して長いURLへリダイレクトできること、有料ユーザー向けのカスタムエイリアスをサポートすること、クリックの分析を追跡すること、そしてリンクを指定時刻に有効期限切れにできることを満たす必要があります。 要件: - 1日あたり1億2,000万件の新規短縮リンクを処理すること。 - 1日あたり40億回のリダイレクトを処理すること。 - ピーク時トラフィックは日次平均の3倍に達する可能性があること。 - リダイレクト遅延ターゲット: 北米、ヨーロッパ、アジアのユーザーに対してp95で80 ms未満。 - 短縮リンク作成遅延ターゲット: p95で300 ms未満。 - リダイレクトのサービス可用性目標: 99.99%。 - 分析データは最大5分の範囲で最終的一貫性でよい。 - カスタムエイリアスはグローバルで一意でなければならない。 - 期限切れまたは削除されたリンクは迅速にリダイレクトを停止しなければならない。 - システムは地域的な障害が発生してもサービス全体が停止しないよう耐性を持つこと。 利用可能な仮定: - 平均的な長いURLの長さは500バイト。 - 分析イベントにはタイムスタンプ、リンクID、国、デバイス種別、リファラーのドメインが含まれる。 - 読み取りトラフィックは書き込みトラフィックよりはるかに多い。 - 必要に応じてSQL、NoSQL、キャッシュ、ストリーム、CDN、メッセージング技術を選択してよいが、その選択理由を示すこと。 あなたの回答には以下を含めてください: 1. 主要コンポーネントとリクエストフローを示すハイレベルなアーキテクチャ。 2. リンク、エイリアス、分析のデータモデルとストレージの選択。 3. 読み取り重視トラフィックに対するスケーリング戦略(キャッシュとリージョナルルーティングを含む)。 4. フェイルオーバー、一貫性の判断、地域停止への対処を含む信頼性戦略。 5. 主要なトレードオフ、ボトルネック、および少なくとも3つのリスクとその緩和策。 6. 上記の数値を用いたストレージとスループットに関する簡潔な容量見積もり。

325
2026/03/19 18:51

要約

Anthropic Claude Opus 4.6 VS Google Gemini 2.5 Flash

洪水レジリエンスに関する市議会公聴会の要約

以下の原文を読み、出席しなかった多忙な市長のために簡潔な要約を書いてください。 あなたの要約は次の条件を満たすこと: - 220〜280語の長さであること - 箇条書きではなく、明確な散文で書くこと - 主な問題、主要な提案、最大の意見対立、言及された最も重要な証拠や事例を正確に捉えること - 時間的な圧力と資金制約を含めること - 少なくとも4つの異なる利害関係者の視点に言及すること - トーンは中立を保ち、本文に記載されていない事実を追加しないこと - 直接の引用を使用しないこと 原文(Source passage:): The Riverton City Council held a three-hour public hearing on Tuesday night to decide whether to move forward with the first phase of a flood-resilience program for the Harbor District, a low-lying waterfront area that has seen repeated street flooding during heavy rain and seasonal high tides. City engineers opened the meeting with maps showing that nuisance flooding days have increased from about four per year a decade ago to thirteen last year, and they warned that a storm comparable to the one that hit neighboring Bay County in 2021 would likely shut down the district’s main bus corridor, damage electrical equipment in several apartment basements, and temporarily isolate the public health clinic. They said the district’s vulnerability comes from a combination of aging storm drains, land subsidence measured at roughly three millimeters per year, and a seawall built in the 1970s that was never designed for current peak water levels. The Public Works Department presented a draft first-phase plan with three linked components. The largest item, estimated at 24 million dollars, would replace undersized stormwater pipes along Mercer Avenue and install two pump stations near the canal. A second item, costing about 11 million dollars, would raise three intersections by up to eighteen inches and rebuild sidewalks with permeable paving intended to reduce runoff. The third component, projected at 8 million dollars, would launch a home-elevation and flood-proofing grant program for small residential buildings and ground-floor businesses, with priority for properties that have filed repeated flood claims. Public Works Director Elena Torres argued that the package was designed to reduce frequent flooding quickly while keeping options open for larger long-term choices such as a new tide gate or partial seawall reconstruction. She stressed that the city had a limited window to apply for a state resilience grant due in eleven weeks, and that delaying a council vote until autumn would almost certainly push construction start dates back by a full year. Torres also emphasized that the city could not afford to do everything at once. Riverton has identified only 18 million dollars in local capital funds over the next two budget cycles for the Harbor District, meaning any first phase would depend on outside money. If the state grant were approved, it could cover up to 60 percent of eligible infrastructure costs, but not all building-level retrofits. The finance office cautioned that debt service is already rising because of a new fire station and school roof repairs, and it advised against borrowing more than 12 million dollars without cutting other planned projects. Several council members noted that residents have grown skeptical after earlier promises to fix flooding produced only minor drain cleaning and temporary barriers. Business owners from the Harbor Merchants Association backed fast action but pressed for street work to be staged block by block. Their president, Malik Chen, said even short full-road closures on Mercer Avenue could cripple restaurants and small shops that rely on weekend foot traffic, especially after two difficult years of inflation and insurance premium increases. He supported the pump stations and pipe replacement as the most visible and urgent investments, but he opposed raising intersections before the city completed a parking access study. According to Chen, delivery trucks already struggle to reach loading zones, and poorly sequenced construction could create a second economic shock in a district still trying to recover. Residents from the Bayside Homes tenants’ council offered a different emphasis. They said street flooding matters, but repeated basement flooding, mold, and power shutoffs inside older apartment buildings create the most serious day-to-day harms. Council speaker Rosa Alvarez described families carrying children through standing water to reach school buses and elderly tenants losing medications when refrigerators fail during outages. She urged the city not to treat household grants as an optional add-on that could be dropped if state aid fell short. Several tenant advocates asked for anti-displacement protections, warning that landlords might use publicly funded upgrades as a reason to raise rents or decline lease renewals. Environmental groups supported green infrastructure but criticized the draft for giving it a secondary role. The nonprofit Clean Estuary Now argued that pumps and larger pipes may move water faster in the short term but could worsen downstream pollution unless paired with wetlands restoration and stricter runoff controls uphill from the district. Its director, Naomi Reed, pointed to two nearby cities where bioswales, rain gardens, and restored marsh edges reduced flood depth while also improving water quality and urban habitat. Reed said Riverton should reserve land now for living-shoreline projects before waterfront parcels become more expensive or are redeveloped. The Harbor District Community Clinic focused on continuity of care. Clinic administrator Dev Patel testified that the building itself has avoided major flood damage so far, but staff and patients often cannot reach it when the bus corridor floods or when ankle-deep water covers the nearest crosswalks. He said missed dialysis follow-ups, delayed prenatal visits, and interruptions to mental health appointments have become more common on heavy-rain days. Patel supported intersection raising and sidewalk reconstruction because, in his view, access failures produce public-health costs that are easy to overlook when discussion centers on property damage alone. A representative of the school district added another layer to the debate. Harbor Middle School sits just outside the worst flood zone, but its buses cross Mercer Avenue and nearby low spots. Deputy superintendent Lila Morgan said transportation delays have doubled on the wettest days, and after-school programs have seen irregular attendance because parents worry that children will get stranded. She favored quick infrastructure upgrades but asked the city to coordinate construction schedules with the school calendar and to maintain safe pedestrian detours. Morgan also noted that the school gym is designated as a neighborhood emergency shelter, so prolonged access problems could weaken the area’s disaster response capacity. Some of the sharpest disagreement came from residents of the adjacent Bluff Park neighborhood, which sits on slightly higher ground. Their association did not dispute that Harbor District flooding is real, but members said the proposed pumps could redirect water toward streets that currently drain adequately. Civil engineer Priya Natarajan, speaking as a Bluff Park resident, said the city’s modeling slides shown at the hearing were too simplified for a project with cross-neighborhood impacts. She asked for an independent hydrology review before any pump contract was approved, and several speakers requested a guarantee that Bluff Park would receive mitigation funds if conditions worsened there. Council members themselves appeared split less on whether action was needed than on how much uncertainty was acceptable. Councilor James Holloway called the current moment a test of whether Riverton can shift from reactive emergency spending to planned adaptation. He argued that waiting for a perfect long-term master plan would leave the city stuck in a cycle of repetitive losses. By contrast, Councilor Denise Park said she feared repeating past mistakes in which rushed capital projects solved one bottleneck while creating another. She proposed separating the grant application from final authorization to build, but the city attorney warned that the state program favors projects with firm local approval and detailed matching commitments. By the end of the hearing, a possible compromise began to emerge. Several members signaled openness to submitting the state grant application for the pipe replacement, pumps, and intersection work while directing staff to strengthen the residential grant program with tenant protections and to commission a third-party review of neighborhood drainage impacts before construction contracts are signed. Another idea under discussion was to phase the street-elevation work so that the block closest to the clinic and bus corridor would be prioritized first, with later blocks contingent on traffic and business-access monitoring. No vote was taken Tuesday night. The council scheduled a work session for next week and said a formal decision would likely come before the grant deadline, though members acknowledged that unresolved questions about equity, sequencing, and downstream effects could still change the package.

274
2026/03/19 04:11

ブレインストーミング

Anthropic Claude Sonnet 4.6 VS Google Gemini 2.5 Flash

小さなアパートで食品ロスを減らす低コストのアイデア

2人の成人が住む世帯が、狭いアパートに住んでおり、冷蔵庫は小さく、収納スペースは少なく、仕事が忙しい生活を送っています。野菜や果物が傷み、残り物が忘れられ、食事の予定が予期せず変わるため、食べ物を捨て過ぎています。彼らは今月から始められる実用的なアイデアを求めています。 これらの制約の下で食品ロスを減らすための、20の異なるアイデアをブレインストーミングしてください: - 今月の新たな出費の合計は50米ドル未満に抑えること。 - どのアイデアも主要な家電の購入やアパートの改装を必要としてはならない。 - 少なくとも5つのアイデアは買い物と計画に焦点を当てること。 - 少なくとも5つのアイデアは保存と見える化(可視化)に焦点を当てること。 - 少なくとも5つのアイデアは調理、残り物、または食材を柔軟に使うことに焦点を当てること。 - 残りのアイデアはその他の関連カテゴリでよい。 - 各アイデアには一文の説明を含めること。 - 各アイデアに対して、次のセットのいずれかの粗いコストラベルを付けること: free, low, or moderate. - 同じアイデアをわずかに言い換えて繰り返すことは避けること。 回答はカテゴリごとにまとめた明確な箇条書きで整理すること。

249
2026/03/19 03:35

分析

Anthropic Claude Haiku 4.5 VS Google Gemini 2.5 Flash

最適な都市交通改善案を選択する

ある都市は、主要な公共交通プロジェクトに対して一回限りの予算1億2,000万ドルを持っており、次のうちちょうど1つの案を選ばなければならない。 オプションA: バス高速輸送回廊(Bus Rapid Transit) - 費用: 9,500万ドル - 推定3年後の1日当たり利用者数: 70,000人 - 影響を受ける利用者の平均移動時間短縮: 1回の乗車あたり12分 - 建設による混乱: 中程度、18か月間 - 年間運営費増加: 600万ドル - 多くの低所得層の地区に直接サービスを提供する - 後で中程度の費用で拡張可能 オプションB: ライトレール延伸 - 費用: 1億2,000万ドル - 推定3年後の1日当たり利用者数: 55,000人 - 影響を受ける利用者の平均移動時間短縮: 1回の乗車あたり18分 - 建設による混乱: 高い、36か月間 - 年間運営費増加: 900万ドル - 駅周辺でより多くの民間開発を促すと予想される - ディーゼルバスよりも1人当たりの排出量が低い オプションC: 市全体のバスネットワーク再設計と信号優先制御 - 費用: 6,000万ドル - 推定3年後の1日当たり利用者数: 85,000人 - 影響を受ける利用者の平均移動時間短縮: 1回の乗車あたり7分 - 建設による混乱: 低い、9か月間 - 年間運営費増加: 400万ドル - 利点は広く行き渡るが、いずれの回廊でも劇的ではない - 展開時の混乱を避けるために強力な広報が必要 追加の状況: - 市議会は優先順位を順に次のように述べている: 1) できるだけ多くの住民の移動性を改善する、2) 公平性を支援する、3) 建設中の中小企業への混乱を最小限にする、4) 長期的な環境持続可能性を促進する。 - 市長は強く、次の選挙(2年後)までに目に見える成果を望んでいる。 - 市は今後5年間、運営費のために新たな税を課すことが許されていない。 1つの案を推奨する分析を作成せよ。トレードオフを比較し、市議会の優先事項と政治的制約に対処し、採用しなかった案がなぜ適さないかを説明せよ。もし最良の選択肢にも重大なリスクがあると考える場合は、それらを特定し、市がどのようにそれらを緩和すべきかを提案せよ。

286
2026/03/19 03:09

41〜60件を表示 / 全106件

関連リンク

X f L